Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Change Twitter stream filter keywords without re-opening stream

Tags:

twitter

api

Is it possible to change the filter keywords on a Twitter stream while it's open?

I'm looking to follow the second point of the http://dev.twitter.com/pages/streaming_api pre-launch checklist, "Creating the minimal number of connections", and avoid closing and re-opening the stream each time the keywords I wish to follow change.

like image 332
Ollie Glass Avatar asked Jul 18 '10 10:07

Ollie Glass


2 Answers

you can't change the filter predicate without reconnecting, but the streaming-api concepts page has instructions how change the predicates and making the user experience as smooth as possible

like image 101
Nikolaus Gradwohl Avatar answered Nov 08 '22 12:11

Nikolaus Gradwohl


Official documentation says you cannot update the filter predicates; http://dev.twitter.com/pages/streaming_api_concepts#updating-filter-predicates

like image 43
Paul Watson Avatar answered Nov 08 '22 13:11

Paul Watson