Twitter: Difference between revisions
Content added Content deleted
imported>Jesstess |
imported>Jesstess No edit summary |
||
Line 105: | Line 105: | ||
<b>Check your understanding</b>: What is the purpose of <code>BOSTON_WOEID</code> in <code>twitter_functions.py</code>? |
<b>Check your understanding</b>: What is the purpose of <code>BOSTON_WOEID</code> in <code>twitter_functions.py</code>? |
||
== Bonus exercises == |
== Bonus exercises == |
||
Line 122: | Line 123: | ||
and more! |
and more! |
||
=== 2. Print trending topics by location === |
|||
Extend <code>trendingTopics</code> so that a Yahoo! Where On Earth ID (WOEID) can be specified on the command line and trending topics for that location will be displayed instead of using the hardcoded <code>BOSTON_WOEID</code> to only display results for Boston. |
|||
You can look up WOEIDs by location at http://sigizmund.info/woeidinfo/ |