Hi Yasara, yeah you can check the retweets using retweeted_status as retweets contains slightly different json structure than tweets. But you have to keep track of whether your system already analyzed the original tweets of this retweets ... Because there can be a scenario where your system meet the retweet before the original tweet you are going to filter out that tweet and that data is loss..
[1] link has some answer to this.... that a way you can edit the search query to filter out retweets .... 1. http://stackoverflow.com/questions/21748880/exclude-retweets-in-twitter-search-api-1-1 But the i don't know whether this solve the above scenario i mentioned .... But the above mentioned scenario is less likely to happen if it is a live stream and there are no waiting periods included.... (You both replied while i'm typing the reply so ... following is the new suggestions .. but please go through above factors. those will help you understand how tweeter API's work ) @ Dinali ... +1 for your idea .. @ Yasara .. I think the favorites_count is calculated based on followers and retweets count ... https://dev.twitter.com/faq/finding-%26-counting-things Check before you do the same thing in your code. Regards, On Tue, Nov 17, 2015 at 1:04 PM, Yasara Dissanayake <[email protected]> wrote: > Hi Nipuna, > For our part we have to analyze tweets real time. For that currently we > are planed to filter retweets by considering presence of retweeted_status > attribute of a json massage which send by tweet object, within the CEP. > Does it seems to be a proper method? Do you have any better idea ? > > regards, > Yasara > > On Tue, Nov 17, 2015 at 11:12 AM, Nipuna Chandradasa <[email protected]> > wrote: > >> Hi, >> >> Is this connector the api provided by twitter?... Then there are few >> things u have to keep in mind... >> >> 1. Twitter api gives each app 15 min waiting period once app collect the >> data from api.... So basically you have to wait 15 min to get data again.... >> >> 2. There are no filter system to filter retweets.... What you can do is >> get data using search query with date periods.... And filter retweets in >> your app.... >> >> Hope you find this helpful.... >> >> Regards, >> On 17 Nov 2015 10:11 a.m., "Dinali Dabarera" <[email protected]> wrote: >> >>> Hi, >>> >>> I collected tweets which has hash tag of Trump >>> #trump,#donaldtrump,#trump2016,#makeamericagreatagain >>> from ESB through a twitter connector to SPARK SQL tables in DAS. >>> >>> The tweets are seems to be most probably retweets. Is there any issue >>> with the twitter connector,is it collecting only retweets? >>> >>> Cheers!! >>> >>> On Tue, Nov 17, 2015 at 8:49 AM, Yasara Dissanayake <[email protected]> >>> wrote: >>> >>>> >>>> >>> >>> >>> -- >>> Dinali Rosemin >>> University of Peradeniya (Computer Engineering) >>> WSO2 Intern >>> 077-0198933 >>> >>> _______________________________________________ >>> Dev mailing list >>> [email protected] >>> http://wso2.org/cgi-bin/mailman/listinfo/dev >>> >>> > -- Nipuna Marcus *Software Engineer* WSO2 Inc. http://wso2.com/ - "lean . enterprise . middleware" Mobile : +94 (0) 713 667906 [email protected]
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
