【问题标题】:Is there a way to implement twitter search?有没有办法实现推特搜索?
【发布时间】:2011-03-12 16:35:34
【问题描述】:

我想实现 twitter 搜索,但要使用他们的 API。我想你们中的大多数人都知道他们在主页上进行的搜索。

搜索给出这样的链接:http://twitter.com/#search?q=ipod ubuntu

我在 API 中寻找可能的解决方案,但没有找到。 如果对请求的响应可以是 XML 格式也很好,因为我知道某些 API 方法只允许 json 或 atom。

希望有一个(使用 API)。

【问题讨论】:

  • 酷你来自塔林,我喜欢那个城市!!没错,twitter 返回的是 json 或 atom,但我敢肯定那里有很多 json2xml 脚本。
  • 是的。我读过一篇。但要做到这一点,我需要与 PEER 合作,据我所知,许多服务器还没有这种可能性。

标签: php xml search twitter


【解决方案1】:

你看过这个twitter search api documentation吗? 您可以简单地使用 http://search.twitter.com/search.atom?q=ipod+ubuntu 以 atom 或 json 形式返回结果 要么 http://search.twitter.com/search.json?q=ipod+ubuntu

atom 不是 xml 语言吗?一个像样的 xml 解析器不应该能够处理 atom 吗?

【讨论】:

  • 但正如我之前所说,如果它们可以是 XML 并且没有看到它,那就太好了。感谢您的链接。
猜你喜欢
  • 1970-01-01
  • 2017-04-02
  • 2021-06-16
  • 1970-01-01
  • 2012-12-15
  • 1970-01-01
  • 2020-11-06
  • 1970-01-01
  • 2019-09-27
相关资源
最近更新 更多