コード例 #1
0
def searchEvent():
    results = api.GetSearch("Chicago", lang="en")

    for result in results:
        logger.logTweet(result)
        tweet = Tweet(result.text)
        tweet.readTweet()
        tweetprocessor.processTweet(tweet)

    countAndColor()
コード例 #2
0
def searchEvent():
    results = api.GetSearch(SEARCH_TERM, lang="en")

    # Log tweets outside of timer
    for result in results:
        logger.logTweet(result)
    start_time = time.time()
    for result in results:
        tweet = Tweet(result.text)
        tweet.readTweet()
        tweetprocessor.processTweet(tweet)
    logger.logTiming("legacy", (time.time() - start_time), tweetprocessor.calcHighest())

    countAndColor()