diff --git a/TwitterGeoPics/SearchOldTweets.py b/TwitterGeoPics/SearchOldTweets.py index af3a4f0..f79edef 100644 --- a/TwitterGeoPics/SearchOldTweets.py +++ b/TwitterGeoPics/SearchOldTweets.py @@ -46,9 +46,9 @@ def process_tweet(status, photo_dir, stalk): lookup_geocode(status) -def search_tweets(api, list, photo_dir, region, stalk, no_retweets, count): - """Get tweets containing any words in 'list'.""" - words = ' OR '.join(list) +def search_tweets(api, word_list, photo_dir, region, stalk, no_retweets, count): + """Get tweets containing any words in 'word_list'.""" + words = ' OR '.join(word_list) params = {'q':words, 'count':count} if region: params['geocode'] = '%f,%f,%fkm' % region # lat,lng,radius diff --git a/TwitterGeoPics/StreamNewTweets.py b/TwitterGeoPics/StreamNewTweets.py index 3cf3285..51ce01c 100644 --- a/TwitterGeoPics/StreamNewTweets.py +++ b/TwitterGeoPics/StreamNewTweets.py @@ -46,11 +46,11 @@ def process_tweet(status, photo_dir, stalk): lookup_geocode(status) -def stream_tweets(api, list, photo_dir, region, stalk, no_retweets): - """Get tweets containing any words in 'list' or that originate from 'region'.""" +def stream_tweets(api, word_list, photo_dir, region, stalk, no_retweets): + """Get tweets containing any words in 'word_list' or that originate from 'region'.""" params = {} - if list is not None: - words = ','.join(list) + if word_list is not None: + words = ','.join(word_list) params['track'] = words if region is not None: params['locations'] = '%f,%f,%f,%f' % region