1
0
Fork 0
mirror of https://github.com/Lynnesbian/FediBooks/ synced 2024-11-25 08:38:59 +00:00

warn about rate limit

This commit is contained in:
Lynne Megido 2019-09-13 12:03:59 +10:00
parent be9685a881
commit af1f8c6d8b

View file

@ -78,6 +78,7 @@ def scrape_posts(account):
if r.status_code == 429:
# we are now being ratelimited, move on to the next user
print("Hit rate limit while scraping {}".format(handle))
done = True
else:
j = r.json()