在 twitteR 中达到意外的推文限制

Reaching unexpected tweet limit in twitteR

我已付费访问 Twitter,因此可以访问历史数据。我正在尝试通过组合搜索术语 'delivery' 和 'accident' 来检索推文,即就像我去 Twitter 搜索并在 'delivery accident' 或 'delivery+accident' 中输入 'latest' 选项卡。我这样做的代码如下:

deliv_list <- searchTwitter("delivery+accident", n=500)

我得到的结果与我的搜索相符,但比我预期的要少得多。 R returns 错误信息:

Warning message:
In doRppAPICall("search/tweets", n, params = params, retryOnRateLimit = retryOnRateLimit,  :
  500 tweets were requested but the API can only return 248

我随后进行了检查,我能够 return 500 条记录用于不同的单次搜索,所以我并没有达到下载限制。每天都有很多关于这个主题的推文,所以我不确定为什么 returned 的结果 n=248 这么少。感谢任何帮助。

twitteR 似乎无法处理完整的存档高级帐户。 search-tweets-python 似乎是要走的路。诱人的是,这可能能够通过 R 的网状包在 R 内部工作。参见:https://dev.to/twitterdev/running-search-tweets-python-in-r-45eo