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()
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()