This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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): |