Skip to content

Instantly share code, notes, and snippets.

Last active September 29, 2020 02:00
What would you like to do?
def get_tweets():
url = ''
query_data = [('language', 'en'), ('locations', '-130,-20,100,50')]
query_url = url + '?' + '&'.join([str(t[0]) + '=' + str(t[1]) for t in query_data])
response = requests.get(query_url, auth=my_auth, stream=True)
return response
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment