Python Forum
tweepy problem to to get a list of retweeters
Thread Rating:
  • 1 Vote(s) - 2 Average
  • 1
  • 2
  • 3
  • 4
  • 5
tweepy problem to to get a list of retweeters
#1
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:

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?
Huh
Reply


Messages In This Thread
tweepy problem to to get a list of retweeters - by komarek - Oct-11-2017, 03:51 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Problem with "Number List" problem on HackerRank Pnerd 5 2,084 Apr-12-2022, 12:25 AM
Last Post: Pnerd
  Check if tweet is favorited by myself | TWEEPY altayko 0 1,359 Sep-16-2020, 05:40 PM
Last Post: altayko
  tweepy:invalid or expired token weareux 2 6,448 Dec-03-2017, 07:27 PM
Last Post: micseydel
  Collecting Data from Twitter with Tweepy and MongoDB fatony 1 3,905 Apr-10-2017, 09:38 PM
Last Post: fatony

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020