add sleep timer doc (#187)

This commit is contained in:
tooomm 2017-12-06 16:35:19 +01:00 committed by GitHub
parent 626457372b
commit b4f829a9e7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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']