Python Twitter search.tweets与直到
我正在使用来自的Python Twitter搜索api 当我尝试使用“until”参数搜索查询时,搜索不会返回任何内容Python Twitter search.tweets与直到,python,twitter,python-twitter,Python,Twitter,Python Twitter,我正在使用来自的Python Twitter搜索api 当我尝试使用“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'92
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': []}
而当我不使用“直到”搜索时,它通常会找到推文。当我在twitter.com/search上手动尝试搜索时
https://twitter.com/search?q=hello%20until%3A2012-01-01&src=typd
它还可以正常查找推文
有什么想法吗?都是关于twitter api搜索限制的。引自: 您不能使用搜索API查找超过一周的推文 例如,试着跑步
print t.search.tweets(q='hello', count=3, until='2013-03-01')
你会看到结果的
还有,看看这个