I am trying to stream twitter data for a period of time of say 5 minutes, using the Stream.filter() method. I am storing the retrieved tweets in a JSON file. The problem is I am
Access the variable myListener.running but instead of passing MyListener directly to Stream create a variable as follows:
myListener = MyListener() timeout code here... suchas time.sleep(20) myListener.running = False