Anonymous user
Twitter: Difference between revisions
→2. Read through and understand trendingTopics
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
<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> ===
|