Twitter API: How to get users ID, who favorite specific tweet?

前端 未结 3 1446
轻奢々
轻奢々 2021-02-18 19:17

I\'m trying to get info about users, who added specific tweet to favorites, but I can\'t find it in documentation.

It is unfair that twitter can do that, but doesn\'t g

3条回答
  •  太阳男子
    2021-02-18 20:02

    Short answer: You can't do this perfectly.

    Long answer: You can do this with some effort but it isn't going to be even close to perfect. You can use the twitter api to monitor the activity of up to 4000 user id's. If a tweet is created by one of the 4k people you monitor, then you can get all the information including the people who have favourited the tweet. This also requires that you push all the information about the people you monitor onto a database (I use mongodb). You can then query the database for information about your tweet.

提交回复
热议问题