I just started to make a Twitter Api. Normally I don't have a Twitter account, for this api I created one. I Tweeted 4 times, including some mentions. But when I use
my_mentions = api.mentions_timeline()
Try using the new Cursor Object as follows:
api = tweepy.API(auth) for mentions in tweepy.Cursor(api.mentions_timeline).items(): # process mentions here print mentions.text
as per Twitters documentation here
Returns the 20 most recent mentions (tweets containing a users’s @screen_name) for the authenticating user.