Streaming API with track and locations. Not track or locations

filter
streaming
location

#1

client.stream(‘statuses/filter’, {track: “football,fifa”, locations: -122.75,36.8,-121.75,37.8 }

When I stream using ‘statuses/filter’ API with both track & locations. I am receiving tweets with the keyword football or the tweets tweeted from the location. It performs OR operations.

I want tweets which tweeted from the location with the keyword football. Do I need to pass any extra parameters for AND action.
Because of OR condition I am processing bulk number of unwanted tweets.


#2

That is not the way the Streaming API works. There is no AND capability on the filter endpoint.

The track, follow, and locations fields should be considered to be combined with an OR operator. track=foo&follow=1234 returns Tweets matching “foo” OR created by user 1234.


#3

This is a follow up question to the ‘track’ param of the filter endpoint.

From the documentation I understand, the way to AND keywords is by giving a space: eg: donald trump is same as donald AND trump. However I want to track tweets that have donald, but not trump. I tried: donald -trump. (similar to the search query). the filter endpoint still delivers tweets with donald trump in it…


#4

Hey @SiddyZen.

This is off topic from the original post. Would you mind opening up a new topic?


#5