【问题标题】:Scrape number of tweets for certain Twitter accounts删除某些 Twitter 帐户的推文数量
【发布时间】:2014-01-15 01:23:35
【问题描述】:

我需要每天收集在某些 Twitter 帐户下生成的确切推文数量。以及关注者的数量。

据我所知,Twitter 的流媒体 API 并不完整。

有谁知道合适的来源 - 不一定来自 Twitter。我已经从 Topsy 抓取了,但我还不知道如何将显示的推文限制为仅一个帐户。我什至不需要内容,只需要生成的推文数量和关注者数量。

谢谢!!!

【问题讨论】:

  • 有人可能有其他想法吗?那里的答案对我来说真的不起作用。

标签: python twitter web-scraping topsy


【解决方案1】:

several python modules可以使用。

以下是使用 Twython 获取关注者列表的方法

(来自:How to get twitter followers using Twython?

from twython import Twython

twitter = Twython()
followers = twitter.get_followers_ids(screen_name = "ryanmcgrath")

for follower_id in followers:
    print "User with ID %d is following ryanmcgrath" % follower_id

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2011-06-21
    • 2021-09-17
    • 1970-01-01
    • 2022-08-21
    • 2013-07-30
    • 2017-12-18
    • 2016-06-24
    • 2012-09-05
    相关资源
    最近更新 更多