Skip to content

Commit

Permalink
update function call param
Browse files Browse the repository at this point in the history
  • Loading branch information
choang committed Jun 27, 2023
1 parent 308cb2d commit 0bd9527
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions gget/gget_elm.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,15 +44,13 @@ def get_html(elm_id, uniprot):
sleep_time = 65
if (uniprot):
sleep_time = sleep_time * 3

url = "http://elm.eu.org/elms/"
try:
resp = requests.get(url + elm_id)
html = resp.text
except RuntimeError:
time.sleep(sleep_time)
resp = requests.get(url + elm_id)
html = resp.text
html = requests.get(url + seq)

# Raise error if status code not "OK" Response
if resp.status_code != 200:
Expand Down Expand Up @@ -148,7 +146,7 @@ def elm(
elm_id_index = 0
# Loop through each elm identifier, get and parse html content
for elm_id in elm_ids:
html = get_html(elm_id)
html = get_html(elm_id, uniprot)
soup = BeautifulSoup(html, "html.parser")

for column in column_names:
Expand Down

0 comments on commit 0bd9527

Please sign in to comment.