Mercurial > repos > proteore > proteore_data_manager
comparison data_manager/resource_building.py @ 56:bd67848a789f draft
"planemo upload commit ba5a199cfc995bbac148163698af2bbcef9cc40b-dirty"
| author | proteore |
|---|---|
| date | Tue, 09 Jun 2020 06:59:35 +0000 |
| parents | 9fda95925297 |
| children | 149eb9e80717 |
comparison
equal
deleted
inserted
replaced
| 55:9fda95925297 | 56:bd67848a789f |
|---|---|
| 563 for id in ids : | 563 for id in ids : |
| 564 query="https://api.nextprot.org/entry/"+id+".json" | 564 query="https://api.nextprot.org/entry/"+id+".json" |
| 565 try: | 565 try: |
| 566 resp = requests.get(url=query) | 566 resp = requests.get(url=query) |
| 567 except : | 567 except : |
| 568 print ("wainting 10 minutes before trying again") | 568 print ("wainting 1 hour before trying again") |
| 569 time.sleep(600) | 569 time.sleep(3600) |
| 570 resp = requests.get(url=query) | 570 resp = requests.get(url=query) |
| 571 data = resp.json() | 571 data = resp.json() |
| 572 resp = requests.get(url=query) | 572 resp = requests.get(url=query) |
| 573 data = resp.json() | 573 data = resp.json() |
| 574 | 574 |
