incubator-s4-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sangeetha Hebbar <sxheb...@ualr.edu>
Subject Re: Twittertopiccount
Date Sat, 21 Apr 2012 21:55:51 GMT
Hi,
Can you please tell me what a sample event looks like in the
twittertopiccount example.
Thanks,


On Fri, Apr 20, 2012 at 2:39 AM, Matthieu Morel <mmorel@apache.org> wrote:

> 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<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<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