Streaming Tweets - Search for Specific KeyWords (More than 1)

sunildm4u
@sunildm4u Sunil D M

Hi,

I am using twitter 4j listeners to get streaming API, I have a req where I need to consider a tweet if it contains all the required key words, Is there a way I can do it ?

When I searched with space as delimitter, I get Tweets which contains either "all" or "One Of" Keywords .... Any help ?

1 year 45 weeks ago

Replies

bremerhuette
@bremerhuette Paul

If you separate them with space it should be an "AND" and so all keywords has to be in the Tweet.
see https://dev.twitter.com/docs/streaming-apis/parameters#track.

Otherwise just have a look with Java into the tweet content and check if all words are contained.

1 year 45 weeks ago
ascl20
@ascl20 احمد قطيع

سلام

43 weeks 1 day ago