Anonymous user
Chicago Python Workshop/Projects/Twitter: Difference between revisions
Chicago Python Workshop/Projects/Twitter (view source)
Revision as of 19:51, 8 December 2012
, 11 years ago→1. Read through and understand search: made it more clear that the python call is run from the command line and not the python prompt. also tried to make it clear that you use the text editor to read through the flle
imported>Codersquid (Created page with "right|300px == Project == Use the Twitter API to write the basic parts of a Twitter client. See what your friends are tweeting, get trending topics, se...") |
imported>Codersquid (→1. Read through and understand search: made it more clear that the python call is run from the command line and not the python prompt. also tried to make it clear that you use the text editor to read through the flle) |
||
Line 17:
=== 1. Read through and understand <code>search</code> ===
#
#* <code>python twitter_api.py --search=Python</code>
#* <code>python twitter_api.py --search="Red Sox"</code>
#
# Trace through the logic in <code>twitter_api.py</code> that turns the <code>--search</code> command line option into a call to <code>search</code>.
# Find <code>GetSearch</code> in the Twitter library code at http://code.google.com/p/python-twitter/source/browse/twitter.py. What other options could we have passed to <code>GetSearch</code>?
<b>Check your understanding</b>: What does <code>api.GetSearch</code> return?
=== 2. Read through and understand <code>trendingTopics</code> ===
|