Skip to content

Instantly share code, notes, and snippets.

@Xuij
Xuij / prawScript1.py
Last active April 6, 2017 13:58
Python script to save your saved reddit threads, and then wget them all!
#pip install praw -- first install praw through pip
#the command looks like python prawScript1.py >redditSaved.txt
#to get praw to connect to the API you need to register (create another app, choose script) : https://www.reddit.com/prefs/apps/
#tutorial : https://praw.readthedocs.io/en/latest/getting_started/authentication.html
#replace secretGOESHERE, accountPassword and accountUsername(twice in this script)
import praw
import sys
reddit = praw.Reddit(client_id='clientID', client_secret='secretGOESHERE', password='accountPassword', user_agent='android:com.example.myredditapp:v1.2.3', username='accountUsername')
def get(n,i,z):