Twitter 搜索 API 中没有特定用户的结果
由于某种原因,当搜索某个特定 Twitter 用户时,搜索 API 不会返回任何内容。 (即 http://search.twitter.com/search.atom?q= +from%3ATWITTERHANDLE_A) TWITTERHANDLE_A 这里是 Twitter 帐户名。该用户活跃一个多月了,获得了多次转发、@,也发出过此类推文。
同时,我创建了一个新的 Twitter 帐户 - 我们将其命名为 TWITTERHANDLE_B。创建帐户后,我立即发送了 1 条推文并执行了与上述相同的搜索 (http://search.twitter.com/search.atom?q=+from%3ATWITTERHANDLE_B) 该推文已被退回。
有什么办法可以查明特定用户是否会被阻止访问搜索结果和/或为什么会被阻止访问搜索结果吗?非常感谢您的帮助...我快要疯了。 Twitter 的文档只是说有时用户的推文不会被搜索!
For some reason, when searching on one specific Twitter user, the search API return nothing. (ie http://search.twitter.com/search.atom?q=+from%3ATWITTERHANDLE_A) TWITTERHANDLE_A here is the Twitter account name. This user has been active for over a month, has had many RTs, @s and has sent such tweets out as well.
Meanwhile, I created a new Twitter account - we will call it TWITTERHANDLE_B. Immediately after I created the account, I sent 1 tweet and performed the same search as above (http://search.twitter.com/search.atom?q=+from%3ATWITTERHANDLE_B)
The tweet was returned.
Is there ANYWAY to find out if and/or why a particular user would be blocked from search results? Thanks so much for any help... I'm going crazy here. Twitter's documentation just says sometimes a user's tweets won't be searched!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您引用的文档有一个指向此页面的链接:
http://support.twitter.com/forums/10713/entries/42646
底部条目解决了您的问题,希望您可以通过这种方式解决它。
请记住,搜索 API 仅获取过去几周的结果,因此如果用户有一段时间没有发推文,则不会有任何结果。
The documentation you refer to has a link to this page:
http://support.twitter.com/forums/10713/entries/42646
The bottom entry addresses your issue, hopefully you can fix it that way.
Bear in mind the search API only grabs results from the last couple of weeks, so if the user hasn't tweeted in a while then there won't be any results.
您可以尝试不使用搜索 API 并直接获取结果:
http://twitter.com /statuses/user_timeline/-username-.json
至少对于 http 请求工作正常... >_<
You could try not using the Search API and grab the results directly:
http://twitter.com/statuses/user_timeline/-username-.json
Works fine for http requests at least... >_<