python - how to stream tweets for a particular time period in the past -


i using following python code tweets particular topic

import sys tweepy import * import time import csv consumer_key = '' consumer_secret = '' oauth_token = '' oauth_token_secret = '' class listener(streamlistener):     def on_data(self,data):         try:             savefile=open('tweetdb2.csv','a')             savefile.write(data)             savefile.write('\n')             savefile.close()             return true         except baseexception e:             print('failed ondata,',str(e))             time.sleep(60)     def on_error(self,status):         print(status)   auth = oauthhandler(consumer_key,consumer_secret) auth.set_access_token(oauth_token,oauth_token_secret) twitterstream = stream(auth,listener()) twitterstream.filter(track=["ipl"]) 

how modify code tweets same topic different time period (say 2nd week of april,2015)? went through api parameters(https://dev.twitter.com/streaming/overview/request-parameters).but not find respect time period. thanks!


Popular posts from this blog

c# - ODP.NET Oracle.ManagedDataAccess causes ORA-12537 network session end of file -

matlab - Compression and Decompression of ECG Signal using HUFFMAN ALGORITHM -

utf 8 - split utf-8 string into bytes in python -