如何获取旧的时间线或推文?

How to get the old timeline or tweet?

我是韩国大学生 我正在与我的顾问教授一起使用推特的大数据开发分析应用程序。所以我正在收集包含特定关键字(相关犯罪词)的推文。我现在使用 'streaming api' 和 'search api'。我已经看到使用搜索 api 和流式传输 api 结果是只有一周的 return 条推文。

我应该得到具有犯罪关键字的旧数据,从 2006 年到 2016 年

你有什么想法吗?

很遗憾,您无法获取该时间范围内的推文。 来自 documentation:

The Search API is not complete index of all Tweets, but instead an index of recent Tweets. At the moment that index includes between 6-9 days of Tweets.

因此,您只能从搜索中获取最近的推文 API。也要小心数据,因为它是关于相关性而不是完整性,来自同一文档:

Before getting involved, it’s important to know that the Search API is focused on relevance and not completeness. This means that some Tweets and users may be missing from search results. If you want to match for completeness you should consider using a Streaming API instead.

如果您真的需要较旧的推文,则必须从 Gnip 等其他来源获取它们。否则你将不得不以不同的方式处理你的问题。

如果您有想要获取信息的所有用户的名称(或 ID),您可以从每个用户获得最多 3200 条推文timelines