Skip to content
Snippets Groups Projects
Commit 02ba246d authored by Alessandro Elias's avatar Alessandro Elias
Browse files

Fix bug; set count of tweets outside of loop

parent 6cf70379
No related branches found
No related tags found
No related merge requests found
...@@ -11,9 +11,11 @@ import logging ...@@ -11,9 +11,11 @@ import logging
logging.basicConfig(level=logging.INFO) logging.basicConfig(level=logging.INFO)
def search(api, sincedate, untildate, csvFile, jsonFile): def search(api, sincedate, untildate, csvFile, jsonFile):
searchQuery = '((cota OR cotas OR universidade OR universidades) AND (racial OR raciais)) OR ((universidade OR universidades) AND (cota OR cotas))' ##### You can change here
maxTweets = 10000000 # Variable with the desireable query.
searchQuery = ''
maxTweets = 10000000
tweetsPerQry = 100 # this is the max the API permits tweetsPerQry = 100 # this is the max the API permits
csvWriter = csv.writer(csvFile) csvWriter = csv.writer(csvFile)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment