3

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?

Braiam
  • 1
  • 11
  • 47
  • 78
theShadow89
  • 1,307
  • 20
  • 44

1 Answers1

0

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

nickmilon
  • 1,332
  • 1
  • 10
  • 9
  • I need a stream of tweets. – theShadow89 Apr 27 '15 at 07:56
  • HBC already implement the right policy for reconnection, so the problem is not what twitter likes or not likes. We want to reconnect to the filtered stream using different "track keywords" without destroy and recreate the HBC client. – Andrea Zonzin May 04 '15 at 15:21