Esempio n. 1
0
def main():
    tweets = Queue()
    conf = Configuration('stream.ini')
    
    pT = ProcessTweets(conf,tweets)
    pT.setDaemon(True)
    pT.start()
    
    stream = TweetStream(conf,tweets)
    stream.start()

    tweets.join()
Esempio n. 2
0
def main():
    tweets = Queue()
    conf = Configuration('stream.ini')

    pT = ProcessTweets(conf, tweets)
    pT.setDaemon(True)
    pT.start()

    stream = TweetStream(conf, tweets)
    stream.start()

    tweets.join()