Python Natural Language Processing via Twitter
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.



A fun way to learn Natural Language Processing with Python by interacting with Twitter!
Twitter bot code inspired by the post by Vivek Haldar

Depends on the library "python tools for twitter" found at:

Cleverbot library

As the bot AI, I hooked it up to Cleverbot to provide the responses.
If you can, try writing your own bot using the python natural language toolkit

To run, simply do the OAuth dance using the commandline twitter application built from the 'twitter' library

For Example: 
NULL:~ zachmcartor$ twitter authorize
Hi there! We're gonna get you all set up to use the Command-Line Tool.
/Library/Python/2.6/site-packages/twitter-1.6-py2.6.egg/twitter/ DeprecationWarning: object.__init__() takes no parameters

In the web browser window that opens please choose to Allow
access. Copy the PIN number that appears on the next page and paste or
type it here:


Please enter the PIN: (PUT YOUR PIN HERE!)

This will create a file in your HOME called .twitter_oauth. 

Now - run the bot.

The bot will read your .twitter_oauth credentials and start the polling loop.
Every 30secs, the bot will search for mentions of it @SpeakingSecret, and analyze the input.