过去时期的推文 [英] Tweets from past periods

查看:38
本文介绍了过去时期的推文的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要使用 Python 下载过去时期的推文(可能数以万计).我应该使用流 API 吗?你有什么参考建议吗?谢谢

I need to use Python to download tweets (probably in the order of the tens of thousands) from past periods. Should I use the streaming API? Do you have any reference to suggest? Thanks

推荐答案

Streaming API 不处理过去时期,你应该使用 搜索/推文.请注意,它最多返回 3200 条推文.另外,来自文档

Streaming API do not deal with past periods, you should use search/tweets. Be aware of fact that it returns up to 3200 tweets. Also, from the docs

搜索 API 并不是推文的详尽来源.不是全部推文将被编入索引或通过搜索界面提供.

Search API is not meant to be an exhaustive source of Tweets. Not all Tweets will be indexed or made available via the search interface.

作为参考,可以在那里找到用于处理 API 的列表库.

For the reference, list libraries to deal with API can be found there.

这篇关于过去时期的推文的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆