diff --git a/twitter-api-example.py b/twitter-api-example.py index fecdf8d9a768e6d8dfdf5270550f26e76e886a62..664c77e069d3a1e7e3d30ad50404e97880b833c9 100755 --- a/twitter-api-example.py +++ b/twitter-api-example.py @@ -32,6 +32,7 @@ def search(api, searchQuery, sincedate, untildate, csvFile, jsonFile): tweet.lang, tweet.text.encode('utf-8')]) tweetCount += 1 + if tweetCount > 99: break print ("Downloaded {0} tweets".format(tweetCount))