Regarding retweet counts in streaming API

twitter4j

#1

Hi,
I collected tweets from streaming API and I want to do retweet research. I just want to get retweet count for original tweet. But retweet count always shows me 0. How to solve this issue?

Like this:
Original tweet Retweet_count
text Int

And i am doing this with twitter4j
-Prabha


#2

I resolved this issue:
Here is the solution,

if(line.contains("retweeted_status")){ Document retweets = (Document)old_status.get("retweeted_status"); new_status.append("retweetCount", retweets.getInteger("retweet_count")); }


#3