Updating keyword list for streaming API on the fly using HBC

I am working on a project accessing Twitter Streaming API with HBC .

I store the keywords for the Twitters Streaming API (filter) in a file and now I'm looking for a way to close and connect to Twitter every time the file changes.

I googled with no helpful result.

Any idea how I could handle this task?


source to share

1 answer

Don't do this Twitter doesn't like to reconnect in the streaming API, they will ban your application. If you need to change filter parameters frequently, it is better to use Rest Api search endpoint tweets



All Articles