1

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

4

1 回答 1

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'] 
于 2013-03-16T14:55:17.680 回答