Skip to content

Instantly share code, notes, and snippets.

@benrules2
Last active December 9, 2016 04:29
Show Gist options
  • Save benrules2/434159930afdead0dddf53634a41b0a1 to your computer and use it in GitHub Desktop.
Save benrules2/434159930afdead0dddf53634a41b0a1 to your computer and use it in GitHub Desktop.
Reddit Sorry Counter
def get_reddit_agent(user_agent, client_id, client_secret, redirect='http://127.0.0.1'):
reddit_agent = praw.Reddit(user_agent = user_agent)
reddit_agent.set_oauth_app_info(client_id = client_id,
client_secret = client_secret,
redirect_uri = redirect)
return reddit_agent
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment