-
Notifications
You must be signed in to change notification settings - Fork 76
Open
Description
For fun I wanted to add up all of the reputation across all users.
Here is the code sample.
stack_auth = StackAuth()
so = Site(StackOverflow, impose_throttling=True)
# Get all users
users = so.users() # Thought this is a single request.
total_reputation = 0
for user in users:
total_reputation += user.reputation
print('Total Reputation:', total_reputation)
But after running the code and waiting a minute or two I get this Throttling Error:
raise StackExchangeError(error_ob.get('error_id', StackExchangeError.UNKNOWN), error_ob.get('error_name'), error_ob.get('error_message'))
stackexchange.core.StackExchangeError: 502 [throttle_violation]: too many requests from this IP, more requests available in 45500 seconds
Does user.reputation cause a request, and if so why?
Metadata
Metadata
Assignees
Labels
No labels