Extract Subreddit Posts' Urls
First Download the script subreddit_extract_post_urls.py
in the above repository.
Next run the following in your terminal:
pip install praw
- Navigate to:
https://old.reddit.com/prefs/apps/
- Click the "are you a developer? create an app..." button or the "create another app..." button and fill out the form like so:
- choose a name
- select "web app"
- set
http://localhost:6414/
as "redirect uri" - solve the "I'm not a rebot" reCATCHA if needed
- click "create app"
- Copy the client id (third line, underneath your application's name and "web app") and put it in the downloaded .py script you downloaded earlier as the
"your_client_id"
. - Copy the secret value and put it in the downloaded .py script you downloaded earlier as the
"your_client_secret"
. - In your downloaded .py script use "
Python:<application name>:v1.0 (by /u/<username>)
" asuser_agent
and replace<application name>
and<username>
accordingly. - In your downloaded .py script replace
subreddit_name
with the subreddit from which you would like to get the posts' urls from (without ther/
). - Run the script using the following in your terminal:
python subreddit_extract_post_urls.py
Ta-da!
NOTE: unfortunately it seems that it maxes out at 1000 urls. I will post an update if I manage to get a workaround.