Questions tagged [twitter-hbc]

Hosebird Client (hbc) is a Java library for consuming Twitter's streaming API.

The client can be used on it's own or in conjunction with Twitter4J. It was announced in 2013 and the project is hosted on GitHub.

27 questions
1
vote
1 answer

Get big number of random tweets

I have to collect a big set (3000-5000) tweets selected randomly for a manual annotation, but I have some restrictions: all the tweets must have an image attached to; duplicated tweets are not allowed; I need information like the comments, so it…
Francesco
  • 75
  • 9
0
votes
0 answers

Twitter Java project : failed to establish connection properly

I am trying to consume Twitter streams with the help of a Java Kafka application. I have created a Twitter developer account and a Twitter application and generated all the 4 keys required. Please find the code below: package…
azaveri7
  • 793
  • 3
  • 18
  • 48
0
votes
0 answers

proper way of connecting to twitter using twitter-hbc in multithreaded system

I am having a use-case in which I am consuming twitter filter stream in a multithreaded environment using twitter HBC. I receive keywords to track from user on per request that I receive, process them and save them to the database. Example…
Prakash P
  • 3,582
  • 4
  • 38
  • 66
0
votes
1 answer

Get Tweets from Twitter hbc API

public class TwitterStreamImpl implements TwitterStream { public void setUpStream() throws InterruptedException { final String consumerKey = getTwitterCredentials().get(0).toString(); final String consumerSecret =…
user5845158
0
votes
1 answer

Filter #tag tweets for a specific account using Twitter Streaming API

I am able to get tweets from a specific account using the streaming API. I can also manage to get tweets for specific #tags like below: endpoint.trackTerms(Lists.newArrayList("twitterapi",…
Auritro
  • 9
  • 3
0
votes
1 answer

Where do I specify the user I want to follow in twitter hbc

Hey I would like to have the latest tweets from certain users that I will follow to be displayed on a page of my web app. So I followed the tutorial on the git of horsebird client but I don't know where I have to specify the users I want the…
Ced
  • 15,847
  • 14
  • 87
  • 146
0
votes
1 answer

Streaming API Twitter - Get the public Stram

I'm using the hbc tools to build an app using streaming Api. I just want to get the public streaming flow without any trackword or others filters. How can I manage to do that? Here is a sample of code I wrote: StatusesFilterEndpoint endpoint = new…
Luhd
  • 1
  • 1
0
votes
1 answer

how do I integrate hosebird client library to a Grails project?

My goal is to use the hosebird client provided by Twitter to stream tweets in my Grails project. I'm really not sure how I will approach this, but I first tried including it in the dependencies in my BuildConfig.groovy like this: dependencies { …
ironmaurus
  • 918
  • 8
  • 8
0
votes
2 answers

java.lang.NoClassDefFoundError when using twitter hosebird

I am trying to use Twitter Streaming APIs so that I can filter some tweets real time and display. I am trying to follow https://github.com/twitter/hbc . I am not used to using Maven, so I found this jar file at…
kosta
  • 4,302
  • 10
  • 50
  • 104
0
votes
1 answer

twitter hosebird client maven usage

hi i'm a noob in this but i want to learn how to use the hosebird client, i downloaded it but from the readme don't understand how to use that. I installed eclipse Java EE and maven in my pc but from the README file in hbc don't see how to connect…
user273686
  • 81
  • 1
  • 8
0
votes
1 answer

adding location filter at runtime using twitter4j

I'm using twitter4j to get a stream filtered by location from twitter, using the folowing : List locations = new ArrayList<>; StatusesFilterEndpoint endpoint.locations(locations); BasicClient client = new ClientBuilder() …
Saed Hammad
  • 96
  • 10
-2
votes
1 answer

Replace google-collect Lists.newArrayList() with other List

using Eclipse Luna I am trying to run a java code which imports deprecated google-collections, which is throwing an exception when compiled with latest Guava version. public static void run(String consumerKey, String consumerSecret, String token,…
Samhash
  • 140
  • 3
  • 15
1
2