简体   繁体   English

我如何流式传输和存储Twitter的公共时间线,特定用户的推文和标记的推文?

[英]how can i stream and store twitter's public timeline, particular user's tweets and tagged tweets?

I have to collect tweets from and for a certain period of time for analytic and research work with tools weka and tableau. 我必须使用weka和tableau工具从一段时间内收集推文并进行分析和研究工作。 Is there a direct way to collect them in xml or .csv format. 是否有直接的方式以xml或.csv格式收集它们。 any help in this regard will be highly appreciated. 在这方面的任何帮助将受到高度赞赏。 I am working on the model to find ranks for twitter users based on the response they get for their tweets. 我正在研究该模型,以便根据推特用户获得的响应为推特用户找到排名。 Earlier there was site 140kit.com having database collections which is not working now. 早些时候,网站140kit.com有数据库集合,现在无法正常工作。 Specifically i want to collect tweets and retweets for users in xml or .csv format for further analyzation through Weka or Tableau which will be more gross for me. 具体来说,我想以xml或.csv格式收集用户的推文和转推,以通过Weka或Tableau进行进一步的分析,这对我来说将是更麻烦的。 I am neo in this area, can you provide any blog link to get started with search of API for users's retweets and tag words and where to begin with as i have no previous knowledge of scripting, python, or JSON? 我是这个领域的新手,你能提供任何博客链接,开始搜索用户的转发和标记词的API以及从哪里开始,因为我以前没有脚本,python或JSON的知识?

When you say "from and for a certain period of time" do you mean the past or the future? 当您说“从某段时间开始”时,您是指过去还是将来?

If you want to collect tweets from the past for keywords, you can use the search API for up to 5-7 days ago. 如果您想收集过去关于关键字的推文,则最多可以在5-7天前使用搜索API。

If you want to collect tweets for keywords starting at a certain time in the future, then you can use the streaming API. 如果您想在将来的某个时间开始收集关键字的推文,则可以使用流式API。

If you want tweets in the past or future for a certain user, you can use the statuses/user_timeline method in the Rest API: http://dev.twitter.com/doc/get/statuses/user_timeline 如果您希望某位用户过去或将来发送推文,则可以在Rest API中使用statuss / user_timeline方法: http : //dev.twitter.com/doc/get/statuses/user_timeline

If you can explain your need in more detail, I'll provide a solution. 如果您能更详细地解释您的需求,我将提供解决方案。

也许访问twitter的firehose会有所帮助?: http : //dev.twitter.com/pages/api_faq#firehose

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

相关问题 如何从用户的流中检索带有URL的推文? - how can I retrieve tweets with URLs from a user's stream? 通过地理位置Twitter搜索API搜索特定用户的时间轴推文 - Search particular user's timeline tweets by geo location twitter search API Twitter数据提取 - 来自用户时间线的推文的json转储 - Twitter data extraction - json dump for tweets from a user's timeline Twitter4j我怎么能从它的第一条推文中得到任何推特处理推文 - Twitter4j how can i get any twitter handle tweets from it's 1'st tweets 如何使用Twitter的API从某人的时间轴中获取推文? (验证问题!) - How do I use Twitter's API to fetch tweets from someone's timeline ? (problems with authentication !) 我怎么能从Twitter的流媒体API中消费推文并将它们存储在mongodb中 - How can I consume tweets from Twitter's streaming api and store them in mongodb 如何从用户检索所有推文,而不仅仅是前 3,200 条,因为 Twitter 限制了它的时间线,API 到 - How to retrieve all tweets from a user and not just the first 3,200 as Twitter limits it’s timeline and API to Stream 用户的推文使用 twitter API js - Stream a user's tweets using twitter API js 用户推文流Twitter - User Tweets Stream Twitter 如何使用新的Twitter API v1.1提取用户的推文? - How can I pull in a user's tweets using the new Twitter API v1.1?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM