Skip to content

Instantly share code, notes, and snippets.

@tag
Created October 18, 2017 20:49
Show Gist options
  • Save tag/b0f281e51439bd91a80fafeb72023848 to your computer and use it in GitHub Desktop.
Save tag/b0f281e51439bd91a80fafeb72023848 to your computer and use it in GitHub Desktop.
{
"consumer_key": "abcYOURCONSUMERKEY",
"consumer_secret": "abcYOURCONSUMERSECRET",
"access_token": "abcYOURACCESSTOKEN",
"access_token_secret": "abcYOURACCESSTOKENSECRET"
}
import json
from twython import Twython
with open('twitter-creds.json') as cred_file:
creds = json.load(cred_file)
twitter = Twython(creds['consumer_key'], creds['consumer_secret'], creds['access_token'], creds['access_token_secret'])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment