理解twitter流式api响应

理解twitter流式api响应,twitter,tweepy,Twitter,Tweepy,我不是一个非常热心的用户,因此很难弄清楚每个字段在twitter api响应中的含义。浏览文档只会让我陷入困境 我想做的是分析事情是如何传播的。所以,我所做的是从推特流媒体api抓取数据,希望分析响应,但我完全困惑了。 因此,json响应示例如下: {"created_at":"Thu Mar 14 18:19:12 +0000 2013","id":312266679390457857,"id_str":"312266679390457857","text":"The first four w

我不是一个非常热心的用户,因此很难弄清楚每个字段在twitter api响应中的含义。浏览文档只会让我陷入困境

我想做的是分析事情是如何传播的。所以,我所做的是从推特流媒体api抓取数据,希望分析响应,但我完全困惑了。 因此,json响应示例如下:

{"created_at":"Thu Mar 14 18:19:12 +0000 2013","id":312266679390457857,"id_str":"312266679390457857","text":"The first four winners of our March Madness Giveaway (4x ADATA Technology (USA) 16GB DashDrives) are:\n\nAaron... http:\/\/t.co\/ikPbfRZQdq","source":"\u003ca href=\"http:\/\/www.facebook.com\/twitter\" rel=\"nofollow\"\u003eFacebook\u003c\/a\u003e","truncated":false,"in_reply_to_status_id":null,"in_reply_to_status_id_str":null,"in_reply_to_user_id":null,"in_reply_to_user_id_str":null,"in_reply_to_screen_name":null,"user":{"id":179622147,"id_str":"179622147","name":"Levetron","screen_name":"Levetron","location":"Los Angeles","url":"http:\/\/www.aziocorp.com","description":"Official Twitter for Levetron by AZiO. Here for customer questions, gaming tips & tricks, sharing cool ideas, product launch releases, reviews and more!","protected":false,"followers_count":1042,"friends_count":25,"listed_count":4,"created_at":"Tue Aug 17 18:56:29 +0000 2010","favourites_count":5,"utc_offset":-28800,"time_zone":"Pacific Time (US & Canada)","geo_enabled":false,"verified":false,"statuses_count":707,"lang":"en","contributors_enabled":false,"is_translator":false,"profile_background_color":"131516","profile_background_image_url":"http:\/\/a0.twimg.com\/images\/themes\/theme14\/bg.gif","profile_background_image_url_https":"https:\/\/si0.twimg.com\/images\/themes\/theme14\/bg.gif","profile_background_tile":true,"profile_image_url":"http:\/\/a0.twimg.com\/profile_images\/3223061028\/999ac6efc782d85983cbcf7f2deab7c1_normal.png","profile_image_url_https":"https:\/\/si0.twimg.com\/profile_images\/3223061028\/999ac6efc782d85983cbcf7f2deab7c1_normal.png","profile_banner_url":"https:\/\/si0.twimg.com\/profile_banners\/179622147\/1360294489","profile_link_color":"009999","profile_sidebar_border_color":"EEEEEE","profile_sidebar_fill_color":"EFEFEF","profile_text_color":"333333","profile_use_background_image":true,"default_profile":false,"default_profile_image":false,"following":null,"follow_request_sent":null,"notifications":null},"geo":null,"coordinates":null,"place":null,"contributors":null,"retweet_count":0,"entities":{"hashtags":[],"urls":[{"url":"http:\/\/t.co\/ikPbfRZQdq","expanded_url":"http:\/\/fb.me\/M6YPCk9W","display_url":"fb.me\/M6YPCk9W","indices":[112,134]}],"user_mentions":[]},"favorited":false,"retweeted":false,"possibly_sensitive":false,"filter_level":"medium"}
1) 我的猜测是,如果这条推特是转发的结果,那么“转发”应该是真的。 但我如何判断它是从哪个用户那里被转发的呢? 2) “id”是用户id还是推特id

基本上,如果我想分析一下Gangham风格是如何传播开来的。。谁转发/关注了那条推特,我该怎么做

此外,twitter最近也改变了它的api。我正在为此使用python,但在我看来,所有这些api的示例都不起作用

For example: https://github.com/tweepy/tweepy
任何建议。
谢谢

请查看与推特相关的推特API。它描述了Twitter JSON响应中返回的所有参数

该推文未被转发,因为
retweeted
设置为false,并且
retweeted\u count
为0

从文件中:

id=此唯一标识符的整数表示形式 推特

转发与典型推特的区别在于 已转发的_状态属性。此属性包含一个表示 被转发的原始推文


此外,还有一个受支持的twitter库列表。除了tweepy之外,还有其他几个库可能适合您。

请查看与tweets相关的Twitter API。它描述了Twitter JSON响应中返回的所有参数

该推文未被转发,因为
retweeted
设置为false,并且
retweeted\u count
为0

从文件中:

id=此唯一标识符的整数表示形式 推特

转发与典型推特的区别在于 已转发的_状态属性。此属性包含一个表示 被转发的原始推文


此外,还有一个受支持的twitter库列表。除了列出的tweepy之外,还有其他几个库可能适合您。

链接不再有效链接不再有效