I'm using Tweepy to live stream tweets based on a few parameters.
The following example works fine as it returns all live tweets that include the word 'python':
stream.filter(track=['python'])
However, I would like to get all live tweets while using other ways of filtering my stream, such as the language. For example, the following example should allow me to get all Greek tweets:
stream.filter(track=['*'], languages=['el'])
Unfortunately, this returns all Greek tweets that include the * symbol.
If I type:
stream.filter(languages=['el'])
I get a 406 error.
So, my questions is:
Can I remove the track parameter to get all live tweets using Tweepy? Is there any other way to get all tweets based on other parameters?
EDIT: I know that stream.sample() is an option. The problem is that if I type:
stream.sample(languages=['en'])
I get a lot of tweets, but if I type:
stream.sample(languages=['el'])
the stream is very slow. I.e., I may get one tweet per minute. I guess this has to do with how the tweets are sampled and how small the sample is. So, I'm asking whether there's a better way to achieve what I want, potentially without using stream.sample().