Skip to content

Instantly share code, notes, and snippets.

View NicholasDomanico's full-sized avatar

Nicholas Domanico NicholasDomanico

View GitHub Profile
@d-schmidt
d-schmidt / refreshToken.py
Last active November 15, 2021 04:51
request a praw reddit oauth authcode and refresh token
#!/usr/bin/env python3
import sys
import http.server
from urllib.parse import urlparse
import praw
import time
"""
https://github.com/reddit/reddit/wiki/API
http://praw.readthedocs.io/en/latest/getting_started/authentication.html