java - twitter4j 是否提供在 2 个日期之间搜索推文的功能

标签 java twitter4j

twitter4j 是否提供在 2 个日期之间搜索推文的功能(例如 2011-10-27 05:30:00 到 2011-10-27 06:30:00)

目前它似乎具有日期的粒度,而不是小时或分钟。

最佳答案

不可以,在当前版本中无法指定日期和时间以在给定范围内进行搜索。

这就是 Twitter search API 的局限性:

Notes about Search Operators

since and until

  • do not support the negation (-) operator.
  • List item should be entered in the format year-month-day or yyyy-mm-dd.
  • are assumed to be from/to 00:00 UTC.
  • cannot be set into the future. If until is in the future you will receive an HTTP 403 error with the message: {"error":"You cannot use an 'until:' date in the future"}. If since is in the future you will receive an HTTP 403 error with the message: {"error":"since_id too recent, poll less frequently"}

关于java - twitter4j 是否提供在 2 个日期之间搜索推文的功能,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7915634/

相关文章:

java - 用java编写的C编译器

java - Twitter4j 与 Twitter hbc

java - 无法使用 OpenCV 加载图像

java - 智能表登录期间出现 ClassNotFoundException

java - Twitter4j Google App Engine - java.lang.NoClassDefFoundError

java - 如何在Android中使用twitter4j库将图片发布到Twitter

java - 获得拥有 1000 个关注者的推特用户

twitter - 服务提供商响应错误 : 301 (Moved Permanently) - Twitter API 1. 1

java - 具有不同端口的 Servlet

java - 如何使用 Selenium 在 chrome 中获取警报框