Sep 16, 2012

Twitter Python API on Mountain Lion

1. Install Twitter Python API
$sudo easy_install twitter
Password:
Searching for twitter
Reading http://pypi.python.org/simple/twitter/
Reading http://mike.verdone.ca/twitter/
Best match: twitter 1.9.0
Downloading http://pypi.python.org/packages/source/t/twitter/twitter-1.9.0.tar.gz#md5=d0fb380321f6765ab81c4b2932c26171
Processing twitter-1.9.0.tar.gz
Running twitter-1.9.0/setup.py -q bdist_egg --dist-dir /tmp/easy_install-uqoR3E/twitter-1.9.0/egg-dist-tmp-RP9RkD
Adding twitter 1.9.0 to easy-install.pth file
Installing twitter-log script to /usr/local/bin
Installing twitter script to /usr/local/bin
Installing twitterbot script to /usr/local/bin
Installing twitter-follow script to /usr/local/bin
Installing twitter-stream-example script to /usr/local/bin
Installing twitter-archiver script to /usr/local/bin

Installed /Library/Python/2.7/site-packages/twitter-1.9.0-py2.7.egg
Processing dependencies for twitter
Finished processing dependencies for twitter

2. Python documentation for twitter api
$pydoc twitter.Twitter

3. Try out twitter api using the sample at
https://gist.github.com/1592859