twittertweepyrtweet

How to get total favorite count of a particular follower?


I want to find how many tweets of user A did their specific follower B favorited. Is there any way to do this using either Python's tweepy or R's rtweet?

Many thanks!


Solution

  • You can do this, but it is a bit complicated.

    You need to use GET favorites/list

    This will let you get up to 200 Tweets that User B has liked. You would then have to search through the returned Tweets to see which ones were posted by User A.

    The Tweepy documentation for favorites tells you how to do this:

    tweets = API.favorites("edent")
    

    Will get you all the tweets I've liked.