Python Twitter 搜索.tweets 直到
我正在使用Python的Twitter搜索API,具体可以在这个链接找到:https://github.com/sixohsix/twitter
当我尝试使用“until”这个参数进行搜索时,结果却什么都没有返回。
from twitter import *
t = Twitter(auth=OAuth(....))
t.search.tweets(q = 'hello', count=3, until='2012-01-01')
{u'search_metadata': {u'count': 3, u'completed_in': 0.007, u'max_id_str': u'9223372036854775807', u'since_id_str': u'0', u'refresh_url': u'?since_id=9223372036854775807&q=hello%20until%3A2012-01-01&include_entities=1', u'since_id': 0, u'query': u'hello+until%3A2012-01-01', u'max_id': 9223372036854775807L}, u'statuses': []}
但是如果我不使用“until”参数进行搜索,就能正常找到推文。当我在twitter.com/search上手动搜索时,
https://twitter.com/search?q=hello%20until%3A2012-01-01&src=typd
也能正常找到推文。
有没有什么想法?