1

http://search.twitter.com/search.jsonこんにちは、特定のユーザーのフィードをプルするために使用しようとしています。ほとんどの場合は機能するようですが、justinbieber の Twitter フィードを取得できないようです。空の結果が得られ続けます。

私は問題なく引っ張ることができます

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"}
4

1 に答える 1

1

特定のユーザーからツイートを取得するだけの場合は、Search API の代わりにGET statues/user_timelineメソッドを使用する必要があります。

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

于 2011-05-11T15:38:06.407 に答える