I am using linq2twitter library to retrieve tweets of a specific hashtag, and I am able to achieve that but the problem is that it is only gives 100 tweets.
string consumerKey = "MyConsumerKey";
string consumerSecret = "MyConsumerSecret";
string accessToken = "MyAcessToken";
string accessTokenSecret = "MyAccessToken";
string Query = "#HashTag";
var auth = new SingleUserAuthorizer
{
CredentialStore = new InMemoryCredentialStore
{
ConsumerKey = consumerKey,
ConsumerSecret = consumerSecret,
OAuthToken = accessToken,
OAuthTokenSecret = accessTokenSecret
}
};
var context = new TwitterContext(auth);
int count = 0;
var searchResults =
(from search in context.Search
where search.Type == SearchType.Search &&
search.Query == Query &&
search.IncludeEntities == true
select search).SingleOrDefault();
foreach (var item in searchResults.Statuses)
{
count++;
}
Console.WriteLine(count);
Is there any way to achieve all the tweets? Or am I doing something wrong?