Пример #1
0
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()
Пример #2
0
    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()