josuebrunel / yahoo-fantasy-sport

Python Yahoo! Fantasy Sports
MIT License
28 stars 9 forks source link

Yahoo throttling requests #50

Open EmilMaric opened 8 years ago

EmilMaric commented 8 years ago

I wrote some tests for the Game resource and collection code that I implemented. I'm running the tests locally with tox on python{2.6, 2.7, 3.3, 3.4, 3.5, pypy, pypy3}. After running the tests a few times, I'm noticing that I'm constantly getting back HttpError 999 during my test runs, which means that Yahoo is throttling my IP address since too many requests are being sent.

Rate limits for Yahoo Fantasy Sports is listed here. We should be getting 20,000 requests calls per hour since we're sending the requests using OAuth. The tests do send a large number of requests, especially since we're testing 7 different versions of python. However, I fairly certain we're not hitting the 20,000 requests/hour limit, but I suspect they're throttling us because we are sending a large amount of requests quickly.

Yahoo does say to contact them for rate limit issues. I could contact them myself, but since we're using your OAuth credentials for TravisCI, it might be better if you do it yourself. Let me know what you want to do.