incubator-s4-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matthieu Morel <mmo...@apache.org>
Subject Re: Twittertopiccount
Date Fri, 20 Apr 2012 07:39:09 GMT
On 4/19/12 8:15 PM, Sangeetha Hebbar wrote:
> Hi
> I am working on a project to extract the user id, location of the user
> and the tweets of the top ten hashtags. What files do I need to change
> to get this information?

Hi, you probably want to have a look at the adapter code:
https://github.com/s4/twittertopiccount/blob/master/src/main/java/org/apache/s4/example/twittertopiccount/TwitterFeedListener.java

and the Status class: 
https://github.com/s4/twittertopiccount/blob/master/src/main/java/org/apache/s4/example/twittertopiccount/Status.java

However, note that these are custom classes to handle the raw json 
twitter stream, and you might be better off by using a library such as 
twitter4j


Hope this helps,

Matthieu





Mime
View raw message