Oct-11-2017, 03:51 PM
so
i have a script that takes a timeline from user X and parse all his last tweets and print out a list of people that retweeted those tweets (for each one of them)
the code is something like this:
EXCEPT for the tweets that are actually not created by X but just Retweeted... in this case i have an empty list of retweeters.
do you know how to fix this?
i have a script that takes a timeline from user X and parse all his last tweets and print out a list of people that retweeted those tweets (for each one of them)
the code is something like this:
for tweet in api.user_timeline(screen_name = "XXXXX", count=20): print("TWEET:", tweet.text) for reTweet in api.retweets(tweet.id): print("USER:", reTweet.user.screen_name)and it's working perfect
EXCEPT for the tweets that are actually not created by X but just Retweeted... in this case i have an empty list of retweeters.
do you know how to fix this?
