import tweepy
import time
import random
print('Bot Starting...')
CONSUMER_KEY = ''
CONSUMER_SECRET = ''
ACCESS_KEY = ''
ACCESS_SECRET = ''
auth = tweepy.OAuthHandler(CONSUMER_KEY,CONSUMER_SECRET)
auth.set_access_token(ACCESS_KEY, ACCESS_SECRET)
api = tweepy.API(auth, wait_on_rate_limit = True, wait_on_rate_limit_notify = True)
I'm keep getting this error, not sure what I'm missing here.
CodePudding user response:
Following the documentation of the latest version, there is no such argument, hence the error.
The changelog indicates the parameter was removed and now:
Always log warning when rate limit reached.
CodePudding user response:
Tweepy v4.0.0 removed this parameter and always logs a warning by default now.
You can simply stop passing it.