Closed simonw closed 3 years ago
https://github.com/crflynn/pypistats.org/issues/28#issuecomment-598417650
The rate limit is 5 per second, and 30 per minute.
https://github.com/crflynn/pypistats.org/blob/da4d4aa8da682047330dc8f6c5a8ea49c88e7905/pypistats/run.py#L23 confirms that is still in place.
I'm running against 102 packgase at the moment https://datasette.io/content?sql=select+substr%28nameWithOwner%2C+instr%28nameWithOwner%2C+%27%2F%27%29+%2B+1%29+from+datasette_repos%3B - so the 30 per minute thing is probably what I'm tripping here.
... but I have --sleep 10
which should keep me within that limit: https://github.com/simonw/package-stats/blob/f62bcc7720bdd9e6b125ee6734b14991afa86890/.github/workflows/fetch_stats.yml#L30