I wrote a python script that uses tweepy package. It searches for tweets pertaining to a given string. It was coded with Twitter API v1 and was working fine
Oflate, with the same code, I am getting rate limit exception. Are there any changes in policy due to introduction of v2? I am using a free API (not premium)

The old API rate limits are not affected by the new ones - tweepy as far as i know does not support v2 yet

2 Likes

Thanks @IgorBrigadir . So, my code should still work. Not sure why, it has started throwing rate limit error

What endpoint are you calling?

I am using search. calling the search routine from tweepy as below:
public_tweets = tweepy.Cursor(api.search, q=search_words, tweet_mode = ‘extended’, lang=“en”, since=date_since, until=date_untill, result_type=“recent” ).items(40000)

1 Like

Ah, in that case the rate limits are for Standard Search: Standard search API | Docs | Twitter Developer Platform either 180 calls in 15 minutes or 450 calls in 15 minutes, depending on how you are authenticating (as a suer with an access token or as an app only with a bearer token). It’s entirely possible that you just hit one of these.

2 Likes

Thanks @IgorBrigadir
The problem got resolved.
The search string I use was returningfew tweets earlier. Now the tweets have increased considerably. Thats why the limit error has been thrown

2 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.