Twitter: Difference between revisions

149 bytes added ,  11 years ago
no edit summary
imported>Jesstess
No edit summary
imported>Jesstess
No edit summary
Line 10:
* Get experience reading other people's code.
 
==SetupProject setup==
 
=== Download and install the <code>python-twitter</code> dependencies and library ===
Line 35:
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 so you can debug this together.
 
==StepsProject steps==
 
=== 1. UnderstandRead through and understand <code>search</code> ===
 
# Run <code>python twitter_api.py --search</code> with various search terms, e.g.
Line 45:
# 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>.
 
===<b>Check 2.your Understandunderstanding</b>: What does <code>trendingTopicsapi.GetSearch</code> ===return?
 
 
=== 2. Read through and understand <code>trendingTopics</code> ===
 
# Run <code>python twitter_api.py --trending-topics</code>
# 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>.
 
#*<b>Check your understanding</b>: What are the differences between the <code>optparse</code> differences between the logic for <code>--search</code> and the logic for <code>--trending-topics</code>?
 
 
=== 3. Implement <code>userTweets</code> ===
Anonymous user