Я пытаюсь использовать tweepy для запроса твита, который попадает в определенный интервал.
Используя приведенный ниже фрагмент для интервалов дней, работает:
page_count = 0
for tweets in tweepy.Cursor(api.search,q=query,count=100,result_type="recent",include_entities=True,since= "2016-02-18", until= "2016-03-18" ).pages():
page_count+=1
print tweets[0].text.encode('utf-8')
if page_count >=20:
break
но я хочу, чтобы это было в пределах временного интервала, например (между 06:00 и 13:00). Я пробовал использовать этот запрос, но он ничего не возвращает:
for tweets in tweepy.Cursor(api.search,q=query,count=100,result_type="recent",include_entities=True,since= "2016-03-18 05:30", until= "2016-03-18 08:30" ).pages():
page_count+=1
print tweets[0].text.encode('utf-8')
if page_count >=20:
break
Как мне это сделать. Спасибо