コード例 #1
0
 def run(self):
    # print('hi')
     client = KafkaClient("localhost:9092")
     consumer = SimpleConsumer(client, "text-Tweets", "Tweets")  
     while(True):
         for message in consumer:
             TweetDisection.main(message)