Live twitter stream using spring social -


I am working on a project where I collect the user's live stream from the social network (Twitter, Facebook etc.) Have to do. I want to use registered users to receive live tweet updates, analyze these updates and then store results in a database.

I am using Spring Framework to register users and to get a thread listeners live Tweets, is it possible with the spring structure? If so, how can I go about it, I am not getting useful information with Google search. If not, what is the best way?

This is possible. You need to get a connection first, the code will look something like this:

  StreamListener listener = new StreamListener () {@ Override Tweet on Public Zero (Tweet) {logger.info (" New tweet is coming "); } @Arrayide Public Video on Delayt (Stream Delayed Evil Deliverers) {Logger. Debug ("Delete an Event Called on Story");); } @ Override Public WideOnline (Int NumberAffiliatitis) {Logger. Debug ("Stream Track is Limited"); } @ Override Public Wired On Warning (Stream Warning Event Warning Event) {Logger. Debug ("Warning From Twitter"); }}}; & Lt; Twitter & gt; Connection = getCurrentConnection (); // This stream will open stream stream = connection.atapi (). Streaming Operation () .Filter ("filter", array.seast (listener));  

Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -