Update keyword list for streaming API on-the-fly using HBC

141 Views Asked by At

I'm working on a project accessing Twitter's Streaming API with HBC.

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

I googled with no useful result.

Any idea how I could manage this task?

1

There are 1 best solutions below

2
nickmilon On

Don't do this Twitter doesn't like reconnects in stream API, they will ban your application. If you have to often change filter parameters better use Rest Api search tweets endpoint