Get the list of tweets whose retweets are more than 5 on basis of specific hashtag

Jan 2, 2014 at 1:15 PM
I am using the code discussed in this thread

I have two issues:

1) I am getting only 15 users no matter what hashtag should i use
2) I need some filtration on the basis of re tweets, can someone guide which method should i use.

Thanks.

Mohit Chhabra
Coordinator
Jan 3, 2014 at 12:08 AM
Edited Jan 3, 2014 at 12:09 AM
Hi,

1) I am getting only 15 users no matter what hashtag should i use

Yes the reason for that is that it is the default value of the count parameter. If you wish to change that please replace :
string searchQuery = String.Format("https://api.twitter.com/1.1/search/tweets.json?q=%23{0}", hashTag);
into
int maxNbTweets = 80; // maximum is 100
string searchQuery = String.Format("https://api.twitter.com/1.1/search/tweets.json?q=%23{0}&count={1}", hashTag, maxNbTweets);
2) I need some filtration on the basis of re tweets, can someone guide which method should i use.
I cannot understand the question. Would you please give me more detail or some examples please.

Regards,
Linvi
Marked as answer by linvi on 1/16/2014 at 1:37 AM