2012-06-21 1 views
0

내가 아는 낡은 트윗을 검색하려면 트윗 텍스트 내에 "API"문자열이 포함되어 있습니까? 내가 찾는 노력에지저귀다 - 검색 결과가 잘못 되었나요? 아니면 제가 잘못한 것이 있습니까?

트윗 (들)입니다 : http://twitter.com/#!/search/realtime/API%20%20from%3Astuartpowers

같은 다양한 검색과

https://twitter.com/stuartpowers/status/101507975751 https://twitter.com/stuartpowers/status/115850250106834944

다행히 이것은 파이썬 지옥과 API로 쉽게 :

[email protected]:~$ python 
>>> from followers import * #followers is a wrapper script I wrote on top of Tweepy 
>>> api = authorize() 
>>> pprint.pprint([(x.id_str,x.text) for x in list(tweepy.Cursor(api.user_timeline,'stuartpowers').items()) if 'API' in x.text]) 

[('115850250106834944', 
    "I wish Google's gdata API was magically ported to using @kennethreitz 's #requests library."), 
('101507975751', 
    'http://t.co/FpCEVa7 looks damn nifty for anyone dealing with APIs: example:  http://t.co/G0Ror3z')] 

"API"를 포함하는 두 개의 트윗이 있습니다. 놀랍지 않게 오래 되니? 2011-08-11 04:19:222011-09-19 18:10:26

그리고 나는 단지 242 개의 짹짹 만 가지고있다.

비 - 코더들이 오래된 트윗을 찾을 수있는 방법이 있었으면 좋겠다.

+0

시도해 보셨습니까? http : //twitter.com/#!/search-advanced –

+1

예. 연결된 검색 - http://twitter.com/#!/search/realtime/API%20%20from%3Astuartpowers - 고급 검색 양식의 고급 검색 양식을 사용하여 만들었습니다. –

+0

나는 지저귐 고급 검색에서 다른 검색 쿼리를 시도하고 나는 dissappointed했습니다! 그러나 이것은 내가 당신의 트윗을 찾도록 도왔습니다! http://snapbird.org/ 사용자를 검색하십시오. @stuartpowers : search query api –

답변

0

검색 API와 REST API는 두 개의 독립적 인 시스템입니다. 검색에는 기록 및 짹짹의 양이 제한되어 있습니다. REST는 더 나은 문서화 된 제한 사항을 가지고 있습니다 : 한 사용자로부터 3200 개 이상의 트윗을 가져올 수 없습니다.

두 API는 이전 데이터와 함께 신뢰할 수 없으므로이를 사용하려면 정기적으로 수집해야합니다.