Skip to content

Question: 1.1.1 Finding retweets #4

@Sooter-L

Description

@Sooter-L

I'm having trouble with Question 1.1.1 Finding retweets. We are supposed to analyze our own timeline. I created a twitter account for this assignment. I tweeted 10 numbers. I re-tweeted my own tweets. My code is not picking up my re-tweets. I go back up and run the code beginning with:

top_ten = []
i =0
for tweet in tweepy.Cursor(api.home_timeline,tweet_mode='extended').items(10):
top_ten.append(tweet._json)

and continue with my own code:

tweet4=top_ten[0]
'retweeted_status' in tweet4

where I cycle through my tweets (by changing the index) and none of them return "True" for being re-tweeted. Does anyone have any ideas about what I am doing wrong?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions