import tweepy
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=False)
user = api.me()
print(user.name)
def main():
search = ('asas','aadfsdfds',...)
numberofTweets = 1000
x = 0
for tweet in tweepy.Cursor(api.search, search).items(numberofTweets):
print(x)
x +=1
try:
tweet.retweet()
tweet.favorite()
print("tweet retweeted.")
except tweepy.TweepError as e:
print(e.reason)
except StopIteration:
break
Я установил номер твита 1000, но он останавливается. 37. (проверьте с помощью переменной x.)
Как я могу увеличить этот лимит? Почему игнорируется 1000?