Hi, We are trying the Filtered stream API and we have requirements as follows:
We have to fetch all tweets that are in the Hindi(hi) language. Is there any way to achieve this or not?
If not what rules we can use to achieve this because we have tried some rules but no luck till now.
Can you please help us?
Regards
Can you explain what method is already tried?
Have you tried using the lang:hi operator
Hi, We have tried lang:hi only but we don’t have any other filter like a keyword/hashtag/cashtag, etc.
We just want to listen to all tweets which are in lang:hi. But we cannot user lang:hi alone.
It is not possible to specify lang without another standalone operator, see: Filtered stream - How to build a rule | Docs | Twitter Developer Platform
Yeah, we can’t just guess what kind of rules already tried and experience the error
Hi, Actually if we try with any hashtag or word then it’s working but we don’t want to use the hashtag or word.
We just want to listen all the hindi tweets.
Is there any way if we can use any regex to achieve this like if any tweet contains any Hindi we should get response.
No unfortunately there’s no way to use regex in a filtered stream
try using annotation context, i think it has wider scope than hashtags or plain text, because lang:hi can’t stand alone
like entity:"new delhi" lang:hi
1 Like
I tried entity:"new delhi" lang:hi but getting empty response every time.