When I use hbc to parse tweets from stream api, I get the following err:
Caused by: twitter4j.JSONException: JSONObject[“text”] not found.
The reason is that I kept getting the following useless tweets
{“limit”:{“track”:8,“timestamp_ms”:“1412693349716”}}
{“limit”:{“track”:11,“timestamp_ms”:“1412693349742”}}
…
How I can filter out those useless tweets. I only want real time and read-only tweets for data analysis purpose. Here is my Java code:
BasicClient client = new ClientBuilder()
.name("myStream")
.hosts(Constants.STREAM_HOST)
.endpoint(endpoint)
.authentication(auth)
.processor(new StringDelimitedProcessor(queue))
.build();