Is there a way to track tweets which restricts tweets containing certain words?

Azmeister3000
@Azmeister3000 Aaron Harris

Hi There, I'm using the code found on 140dev.com - I highly recommend it for any beginners! Anyway, I'm trying to find a way of restricting the tweets that are coming in. The PHP code for tracking them is below:

$stream->setTrack(array('recipe'));

So really what I'd like is a way of tracking all tweets containing "recipe" but a way to exclude all those which also include "Cheese" in the tweet.

If anyone can help it would be much appreciated.

Many Thanks

2 years 12 weeks ago

Replies

episod
@episod Taylor Singletary

This feature is not available with the streaming API. It's best to post-process the results you receive to filter out the ones you aren't interested in.

2 years 11 weeks ago