Twitter API:如何获取用户ID,谁最喜欢特定的推文? [英] Twitter API: How to get users ID, who favorite specific tweet?

查看:2101
本文介绍了Twitter API:如何获取用户ID,谁最喜欢特定的推文?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试获取有关用户的信息,这些用户向收藏夹中添加了特定的tweet,但是我在文档中找不到它.

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

twitter可以做到这一点是不公平的,但是没有将此方法作为API.

It is unfair that twitter can do that, but doesn't give this method as API.

推荐答案

简短的回答:您不能完美地做到这一点.

Short answer: You can't do this perfectly.

长答案:您可以花些力气来做到这一点,但它甚至不会接近完美.您可以使用twitter api监视多达4000个用户ID的活动.如果一条推文是由您监视的4k人员之一创建的,则您可以获得包括收藏该推文的人员在内的所有信息.这还要求您将与您监视的人员有关的所有信息推送到数据库中(我使用mongodb).然后,您可以查询数据库以获取有关您的推文的信息.

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.

这篇关于Twitter API:如何获取用户ID,谁最喜欢特定的推文?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆