Tweepy StreamListener to CSV
I'm a newbie on python and I'm trying to develop an app that retrieves data from Twitter with Tweepy and the Streaming APIs and converts the data on a CSV file. The problem is that this code doesn't create an output CSV file, maybe because I should set the code to stop when it achieves for eg. 1000 tweets but I'm not able to set this stop point here's the code import sys import tweepy import csv #pass security information to variables consumer_key="" consumer_secret="" access_key = "" access_secret = "" #use variables to access twitter auth = tweepy.OAuthHandler(consumer_key, consumer_secret)