From c1a832389ec763228c0d627b55ed551ebf892640 Mon Sep 17 00:00:00 2001 From: ash Date: Mon, 4 Apr 2022 19:02:15 +0100 Subject: [PATCH] add docstring to redditcrawl.py --- tools/redditcrawl.py | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/tools/redditcrawl.py b/tools/redditcrawl.py index 2a308090..d9a766c9 100755 --- a/tools/redditcrawl.py +++ b/tools/redditcrawl.py @@ -17,6 +17,26 @@ latestID = int(input("Latest ID: ")) for submission in reddit.subreddit('placeAtlas2').new(limit=220): + """ + Auth setup + 1. Head to https://www.reddit.com/prefs/apps + 2. Click "create another app" + 3. Give it a name and description + 4. Select "script" + 5. Redirect to http://localhost:8080 + 6. Copy ID (under Personal Use Script) + 7. Append to file called "credentials" + 8. Copy Secret + 9. Append on newline to "credentials" file + 10. Run Script + + Running Script + 1. Input the next ID to use + 2. Manually resolve errors in manual_atlas.json + 3. Copy temp_atlas.json entries into web/_js/atlas.js + 4. Pull Request + + """ #print(dir(submission)) if(submission.link_flair_text == "New Entry"): text = submission.selftext