Skip to content

Commit

Permalink
add sleep time to api calls
Browse files Browse the repository at this point in the history
  • Loading branch information
choang committed Jun 27, 2023
1 parent 45cf377 commit c4c3224
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions gget/gget_elm.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ def get_response_api(seq, uniprot):
url = "http://elm.eu.org/start_search/"
# Build URL
try:
time.sleep(sleep_time)
html = requests.get(url + seq)
except RuntimeError:
time.sleep(sleep_time)
Expand Down

0 comments on commit c4c3224

Please sign in to comment.