Created
October 18, 2016 10:20
-
-
Save bricky149/ddc6c6f3f4c8997fd04b0835d6745d13 to your computer and use it in GitHub Desktop.
Script used to scrape Twitter users' locations from GPS-tagged tweets.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import json | |
from twython import Twython | |
CONSUMER_KEY = '' | |
CONSUMER_SECRET = '' | |
ACCESS_TOKEN = '' | |
ACCESS_TOKEN_SECRET = '' | |
twitter = Twython(CONSUMER_KEY, CONSUMER_SECRET, ACCESS_TOKEN, ACCESS_TOKEN_SECRET) | |
with open('dump.log', 'w') as file_: | |
file_.write(json.dumps(twitter.get_user_timeline(screen_name=''))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment