def main(): rootpath = '/local/data/haoxu/Rudetect' folderpath = 'Gabapentin_0628_0121' start = '2017-06-28' end = '2018-01-21' originhashtag = '#gabapentin' gettweets = Twitter.GetTweets(rootpath, folderpath, start, end, originhashtag) gettweets.start_getTweets()
def getTweets(self, query, start, end): """Get the the final tweets. Returns ------- None """ gettweets = Twitter.GetTweets(self.rootpath, self.folderpath, start, end, query) gettweets.start_getTweets()