简体   繁体   English

使用 Twitter API 获得所有转推和提及计数的用户

[英]Get A Users Over All Retweet and Mention Counts using Twitter API

We are working on some analytics using the amount a user is retweeted or mentioned... I can't seem to find a way to get these numbers using the apis does anyone have any ideas?我们正在使用用户被转发或提及的数量进行一些分析......我似乎无法找到使用 api 获取这些数字的方法有人有什么想法吗?

https://api.twitter.com/1/statuses/user_timeline.json?include_entities=true&include_rts=true&screen_name={screen_name}&count={count} https://api.twitter.com/1/statuses/user_timeline.json?include_entities=true&include_rts&count=true&countname}

it's important to include the line include_entities=true to the request.在请求中包含行include_entities=true很重要。 This will give you an expanded response including re-tweet and mention counts.这将为您提供扩展的响应,包括转发和提及计数。

Get Status / User Timeline获取状态/用户时间线

Twitter API Console Twitter API 控制台

Update:更新:

to get tweets from the last 90 days, there is a Node.js library you can use called Snapbird要获取过去 90 天的推文,您可以使用一个名为 Snapbird 的 Node.js 库

https://github.com/remy/snapbird https://github.com/remy/snapbird

.. and here is another resource covering the same topic. ..这是另一个涵盖同一主题的资源。

http://blog.tweetsmarter.com/twitter-search/10-ways-and-20-features-for-searching-old-tweets/ http://blog.tweetsmarter.com/twitter-search/10-ways-and-20-features-for-searching-old-tweets/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM