iSarabjitDhiman / TweeterPy

TweeterPy is a python library to extract data from Twitter. TweeterPy API lets you scrape data from a user's profile like username, userid, bio, followers/followings list, profile media, tweets, etc.
MIT License
169 stars 30 forks source link

{'code': 88, 'message': 'Rate limit exceeded.'} is not handled #80

Closed burruplambert closed 2 months ago

burruplambert commented 2 months ago

This is what is currently returned. No further information is provided.

2024-09-05 10:56:20,013 [ERROR] :: Couldn't find guest token
2024-09-05 10:56:20,013 [ERROR] :: Couldn't find guest token
2024-09-05 10:56:20,014 [ERROR] :: Couldn't generate a new session.

However the actual reason was because of a rate limit. The response was

{'code': 88, 'message': 'Rate limit exceeded.'}

It is not currently handed in util.check_for_errors() or util.check_api_rate_limits()

iSarabjitDhiman commented 2 months ago

I will fix this in the upcoming commits.

iSarabjitDhiman commented 2 months ago

Hey @burruplambert,

Which line or url does return the given rate limit exceeded response? How do I reproduce it on my end? Edit: Implemented in add6349