Anonymous user
Twitter: Difference between revisions
→Setup
imported>Jesstess m (Protected "Twitter" ([edit=autoconfirmed] (indefinite) [move=autoconfirmed] (indefinite))) |
imported>Jesstess (→Setup) |
||
Line 3:
==Setup==
=== Download and install the <code>python-twitter</code> dependencies and library ===
* http://pypi.python.org/pypi/httplib2/
* http://pypi.python.org/pypi/simplejson/
* http://pypi.python.org/pypi/oauth2/
* http://code.google.com/p/python-twitter/
=== Download and un-archive the Twitter project skeleton code ===
* http://web.mit.edu/jesstess/www/BostonPythonWorkshop6/Twitter.zip
Un-archiving will produce a <code>Twitter</code> folder containing 3 python files: <code>twitter_api.py</code>, <code>twitter_functions.py</code>, and <code>util.py</code>.
=== Test your installation ===
From a command prompt, navigate to the <code>Twitter</code> directory and run
<pre>
python twitter_api.py --search=python
</pre>
You should see the text from 20 tweets containing the word "Python" printed to the screen. If you don't, let a staff member know.
==Goals==
|