Twitter: Difference between revisions

4 bytes removed ,  10 years ago
imported>Jesstess
imported>Jesstess
Line 58:
# Read through the <code>trendingTopics</code> function in <code>twitter_functions.py</code>.
# Trace through the logic in <code>twitter_api.py</code> that turns the <code>--trending-topics</code> command line option into a call to <code>search</code>.
# Find <code>GetTrendsWoeid</code> in the Twitter library code at httphttps://code.googlegithub.com/pbear/python-twitter/sourceblob/browsemaster/twitter.py. How many trending topics does that method return?
 
<b>Check your understanding</b>: What are the differences between the <code>optparse</code> logic for <code>--search</code> and <code>--trending-topics</code>?
Line 67:
The <code>optparse</code> module for parsing command-line options: http://docs.python.org/library/optparse.html</li>
</ul>
 
 
=== 3. Implement <code>userTweets</code> ===
Anonymous user