Stream Questions

Dec 10, 2014 at 3:07 PM
Is it possible to limit streaming tweet to English?

Also can you determine what the search term was for the returned tweet?

Thanks,
Carmen
Coordinator
Dec 10, 2014 at 5:40 PM
Hi Carmen,

It does not look like this is possible, Twitter does not provide this parameter (doc).
But you can use the language parameter of the tweet though.
fs.MatchingTweetReceived += (sender, args) =>
{
    if (args.Tweet.Language == Language.English)
    {
        // Gotcha
    }
};
Linvi
Coordinator
Dec 12, 2014 at 8:47 AM
Sorry I was wrong, the base stream has this option and I did not remember but I implemented it.
fs.FilterTweetsToBeIn(Language.English);
Sorry for the misinformation.
Linvi
Marked as answer by linvi on 12/12/2014 at 3:31 AM