Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question: 1.1.1 Finding retweets #4

Open
Sooter-L opened this issue Oct 22, 2018 · 6 comments
Open

Question: 1.1.1 Finding retweets #4

Sooter-L opened this issue Oct 22, 2018 · 6 comments

Comments

@Sooter-L
Copy link

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?

@harryhoch
Copy link
Collaborator

changing api.home_timeline to api.user_timeline appears to work.

@harryhoch
Copy link
Collaborator

harryhoch commented Oct 27, 2018 via email

@mbayer-pitt
Copy link

mbayer-pitt commented Oct 27, 2018 via email

@harryhoch
Copy link
Collaborator

harryhoch commented Oct 27, 2018 via email

@mbayer-pitt
Copy link

mbayer-pitt commented Oct 27, 2018 via email

@harryhoch
Copy link
Collaborator

harryhoch commented Oct 27, 2018 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants