Here is a script which uses the API to search twitter from the terminal.
To use this script, you first need to create an application at https://dev.twitter.com/apps
You will get your
consumer_secret from there.
You will also need to create an access token for your account.
After doing that you will get your
Fill these four values in
twitter_search.py and you are good to go.
$ python twitter_search.py SEARCH TERM(S)