mirror of
https://github.com/Cockatrice/Magic-Spoiler.git
synced 2026-03-21 17:54:59 -05:00
add sleep timer doc (#187)
This commit is contained in:
parent
626457372b
commit
b4f829a9e7
|
|
@ -18,7 +18,7 @@ def get_scryfall(setUrl='https://api.scryfall.com/cards/search?q=++e:xln'):
|
|||
setDone = True
|
||||
print 'No Scryfall data'
|
||||
scryfall = ['']
|
||||
time.sleep(.1)
|
||||
time.sleep(.1) # 100ms sleep, see "Rate Limits and Good Citizenship" at https://scryfall.com/docs/api
|
||||
if setcards.has_key('has_more'):
|
||||
if setcards['has_more']:
|
||||
setUrl = setcards['next_page']
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user