Skip to content

Instantly share code, notes, and snippets.

@impshum
Created June 25, 2019 12:24
Show Gist options
  • Select an option

  • Save impshum/e9e39130888835ced1fc37a8101e8a0d to your computer and use it in GitHub Desktop.

Select an option

Save impshum/e9e39130888835ced1fc37a8101e8a0d to your computer and use it in GitHub Desktop.
import configparser
config = configparser.ConfigParser()
config.read('config.ini')
reddit_user = config.get('REDDIT', 'username')
reddit_pass = config.get('REDDIT', 'password')
client_id = config.get('REDDIT', 'client_id')
client_secret = config.get('REDDIT', 'client_secret')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment