Skip to content

Instantly share code, notes, and snippets.

View msmahon's full-sized avatar
🥨

Mitchell Mahoney msmahon

🥨
View GitHub Profile
import praw # simple interface to the reddit API, also handles rate limiting of requests
import re
from collections import deque
from time import sleep
USERNAME = "Your username here"
PASSWORD = "Your password here"
USERAGENT = "Your useragent string here. It should include your /u/username as a courtesy to reddit"
r = praw.Reddit(USERAGENT)