This project is based on twitter API for capturing real time tweets with key word and specific user. For this project you will need to have a twitter developer account in order to access all the availabe key.
If you already have access to twitter developer account, just replace your keys in "config.ini" file as shown in Screenshot
Now you are all set to go with the code. just set key word and limit of tweets retrive. provide User name incase if you want to search by specific user.
You Need to specify your columns of tweetes you want to get, in this case it os just user and the Tweet.
At Last you will get the required number of tweets as a result as:
you can also copy all these tweets and users in to a CSV file. Try it by Yourself....