Skip to content

Commit

Permalink
Updating recipes that use trending topics to reflect a recent change …
Browse files Browse the repository at this point in the history
…in Twitter's Trends API as outlined in <https://dev.twitter.com/blog/changing-trends-api>. See also <python-twitter-tools/twitter#56>, and note that you may need to install the 'twitter' Python package directly from GitHub using pip as outlined in a comment vs updating from PyPi.
  • Loading branch information
Matthew A. Russell committed Oct 6, 2011
1 parent 2fcf6f3 commit 1be3fbb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion recipe__get_search_results_for_trending_topic.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

trends = [
trend['name']
for trend in t.trends()['trends']
for trend in t.trends._(1)()[0]['trends']
]

idx = 0
Expand Down
2 changes: 1 addition & 1 deletion recipe__trending_topics_time_series.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

now = str(datetime.datetime.now())

trends = json.dumps(t.trends(), indent=1)
trends = json.dumps(t.trends._(1)(), indent=1)

f = open(os.path.join(os.getcwd(), 'out', 'trends_data', now), 'w')
f.write(trends)
Expand Down

0 comments on commit 1be3fbb

Please sign in to comment.