I have a Python script that fetch tweets. In the script i use the libary Tweepy . I use a valid authentication parameters. After running this script some tweets are stor
I had this same problem, solved when I remved languages
from the filter function
since it's not yet functional, although Twitter says it is
Instead I keep the check of the language as you did in the on_data(..)
Also I use the on_status(..)
instead of on_data(..)
as follows:
def on_status(self, status):
...
tweet = json.dumps(status)
if tweet["lang"] == "nl":
print tweet["id"]
Tweets.insert(tweet)
...
Other people reported that using twitterStream.filter(track=['word'], languages=['nl'])
, but it didn't with me.