推特搜索问题

发布于 2024-11-06 01:02:20 字数 1608 浏览 1 评论 0原文

大家好,我正在尝试使用 http://search.twitter.com/search.json 来提取某些用户的提要。它似乎适用于大多数人,但我似乎无法拉贾斯汀比伯的推特提要我不断得到空结果

我可以拉威尔w没有问题

http://twitter.com/#!/wilw
http://search.twitter.com/search.json?q=from:wilw

{"results":[{"from_user_id_str":"20300","profile_image_url":"http://a0.twimg.com/profile_images/421184034/qc_avatar_flip_normal.png","created_at":"Wed, 11 May 2011 03:23:19 +0000","from_user":"wilw","id_str":"68154189968191488","metadata":{"result_type":"recent"},"to_user_id":null,"text":"That Joke Isn't Funny Anymore #ValleySmiths (Thank you for your indulgence, and my apologies. Here endeth the flood.)","id":68154189968191488,"from_user_id":20300,"geo":null,"iso_language_code":"en","to_user_id_str":null,"source":"<a href="http://twitter.com/">web</a>"}],"max_id":68154189968191488,"since_id":0,"refresh_url":"?since_id=68154189968191488&q=from%3Awilw","next_page":"?page=2&max_id=68154189968191488&rpp=1&q=from%3Awilw","results_per_page":1,"page":1,"completed_in":0.017642,"since_id_str":"0","max_id_str":"68154189968191488","query":"from%3Awilw"}

,但当谈到贾斯汀比伯(它的工作抱歉)

http://twitter.com/#!/JUSTINBIEBER
http://search.twitter.com/search.json?q=from:JUSTINBIEBER

我得到[]结果

{"results":[],"max_id":68133219333189632,"since_id":0,"refresh_url":"?since_id=68133219333189632&q=from%3AJUSTINBIEBER","results_per_page":1,"page":1,"completed_in":0.222307,"since_id_str":"0","max_id_str":"68133219333189632","query":"from%3AJUSTINBIEBER"}

Hi guys I'm trying to use http://search.twitter.com/search.json to pull feeds of certain users. It seems to work with most but I can't seem to pull justinbieber's twitter feed I keep getting empty results

I can pull wilw no prob

http://twitter.com/#!/wilw
http://search.twitter.com/search.json?q=from:wilw

{"results":[{"from_user_id_str":"20300","profile_image_url":"http://a0.twimg.com/profile_images/421184034/qc_avatar_flip_normal.png","created_at":"Wed, 11 May 2011 03:23:19 +0000","from_user":"wilw","id_str":"68154189968191488","metadata":{"result_type":"recent"},"to_user_id":null,"text":"That Joke Isn't Funny Anymore #ValleySmiths (Thank you for your indulgence, and my apologies. Here endeth the flood.)","id":68154189968191488,"from_user_id":20300,"geo":null,"iso_language_code":"en","to_user_id_str":null,"source":"<a href="http://twitter.com/">web</a>"}],"max_id":68154189968191488,"since_id":0,"refresh_url":"?since_id=68154189968191488&q=from%3Awilw","next_page":"?page=2&max_id=68154189968191488&rpp=1&q=from%3Awilw","results_per_page":1,"page":1,"completed_in":0.017642,"since_id_str":"0","max_id_str":"68154189968191488","query":"from%3Awilw"}

but when it comes to justinbieber (its for work sorry)

http://twitter.com/#!/JUSTINBIEBER
http://search.twitter.com/search.json?q=from:JUSTINBIEBER

I get [] results

{"results":[],"max_id":68133219333189632,"since_id":0,"refresh_url":"?since_id=68133219333189632&q=from%3AJUSTINBIEBER","results_per_page":1,"page":1,"completed_in":0.222307,"since_id_str":"0","max_id_str":"68133219333189632","query":"from%3AJUSTINBIEBER"}

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

潦草背影 2024-11-13 01:02:20

如果您只是从特定用户获取推文,则应该使用 GETstatus/user_timeline方法而不是搜索 API。

https://api.twitter.com/1/statuses/user_timeline.json?screen_name=JUSTINBIEBER

If you are just getting tweets from specific users you should use the GET statues/user_timeline method instead of the Search API.

https://api.twitter.com/1/statuses/user_timeline.json?screen_name=JUSTINBIEBER

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文