Skip to content

Commit

Permalink
AU location code doesn't work
Browse files Browse the repository at this point in the history
  • Loading branch information
PyGeek03 committed Jun 19, 2021
1 parent be79bdd commit acce085
Show file tree
Hide file tree
Showing 4 changed files with 1,307 additions and 2,200 deletions.
6 changes: 3 additions & 3 deletions get_top_trending_tweets_twarc1.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@
access_token, access_token_secret)

location_codes = {
'Global': 1,
'Global': 1,
'US': 23424977,
'AU': 60370
'Sydney': 1105779
}
chosen_location = 'Global'
chosen_location = 'US'
trends = client1.trends_place(location_codes[chosen_location])[0]["trends"]
for i in range(len(trends)):
if trends[i]["tweet_volume"] is None:
Expand Down
4 changes: 2 additions & 2 deletions get_trends_twarc1.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@
location_codes = {
'Global': 1,
'US': 23424977,
'AU': 60370
'Sydney': 1105779
}
chosen_location = 'Global'
chosen_location = 'Sydney'
trends = client1.trends_place(location_codes[chosen_location])[0]["trends"]
for i in range(len(trends)):
if trends[i]["tweet_volume"] is None:
Expand Down
Loading

0 comments on commit acce085

Please sign in to comment.