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