Skip to content

Instantly share code, notes, and snippets.

@M0nica
Created September 4, 2017 23:13
Show Gist options
  • Save M0nica/080bb680cb7e6d000432c85373d28c6a to your computer and use it in GitHub Desktop.
Save M0nica/080bb680cb7e6d000432c85373d28c6a to your computer and use it in GitHub Desktop.
An example script to pass in API keys/hidden variables from config.py
import config
from twython import Twython, TwythonError
# create a Twython object by passing the necessary secret passwords
twitter = Twython(config.api_key, config.api_secret, config.access_token, config.token_secret)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment