【问题标题】:Python twitter library for public api用于公共 api 的 Python twitter 库
【发布时间】:2013-03-16 14:48:47
【问题描述】:

我正在寻找一个与 twitter api v1.1 一起使用的 python 库。我想提取公共推文。但是公共时间线方法在较新的版本中已被弃用,因此这在较旧的 python 实现中不起作用。请建议可以帮助我这样做的新 python 库。提前致谢。

【问题讨论】:

    标签: python twitter public timeline


    【解决方案1】:

    使用https://code.google.com/p/python-twitter/的库方法:

      >>> statuses = api.GetPublicTimeline()
      >>> print [s.user.name for s in statuses]
      [u'DeWitt', u'Kesuke Miyagi', u'ev', u'Buzz Andersen', u'Biz Stone'] 
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2015-04-18
      • 1970-01-01
      • 2017-12-31
      • 1970-01-01
      • 1970-01-01
      • 2020-11-17
      • 1970-01-01
      相关资源
      最近更新 更多