Closed ChaseyChaser closed 7 years ago
As a short hack you could just add
break
in the for-loop after line 45. This way the list of Tweets contains only 1 Tweet each time the script is called. Now call it every 15 minutes via crontab (if you're using something Unix-like) or task scheduler (for Windows).
@ChaseyChaser Another hack you could use instead of using break
is specifying how many tweet you want on line 40
timelineIterator = tweepy.Cursor(api.search, q=hashtag, since_id=savepoint, lang=tweetLanguage).items(5)
# for five twits
timelineIterator = tweepy.Cursor(api.search, q=hashtag, since_id=savepoint, lang=tweetLanguage).items(25)
# for 25 twits
How can I slow down the retweets to once every 15 minutes? Currently it is spamming them out all at once.