In order to create the .Net application that will connect to the twitter API we will need a developer account. We can create the account at the twitter developer’s site (https://dev.twitter.com/).
In this link you can find a post that explain how to create a twitter account and get the Consumer key, Consumer secret, Access token and the Access token secret, these key will allow us to connect to the twitter API.
Now we need to create a console application, in my case I’m using Visual Studio 2012 and .Net 4.0
The Main method
This is the entry point of the application, it ask to the user for the search criteria and the crawling time.
We must remember that the Twitter Search API will not return tweets over 6 days ago, for that reason this application is designed to collect results in real time, also we’ll get always the more recent tweets in groups of 100