Bulk Downloader for Reddit

Download all user post content, subreddits, etc.

Download all submissions from a user.
. ~/.python-env/bulk/bin/activate
python3 ./script.py --directory {USER} --user {USER} --submitted

Setup

Bulk Downloader for Reddit Files

Location

Purpose

~/Bulk Downloader for Reddit/config.json

\nLinux default configuration location

C:\Users\{USER}\Bulk Downloader for Reddit\config.json

Windows default configuration location

Updated: None

Note

config.json can be placed in the same directory as the downloader scripts instead of one of these locations.

Clone git repository
git clone https://github.com/aliparlakci/bulk-downloader-for-reddit ~/git/bulk
Setup python virtual environment and installation requirements.
cd ~/.python-env
python3 -m venv bulk
. ~/.python-env/bulk/bin/activate

cd ~/git/bulk
pip install requirements.txt

Create Imgur API Account

https://api.imgur.com/oauth2/addclient

Imgur Oauth2 Client Settings

Application Name

bulk

oauth2 without a callback URL

Email

{EMAIL}

Note

On success, a Client ID and Client Secret will be displayed. Use these to configure bulk downloader.

Initial Configuration

Requires a GUI web-browser to generate initial configuration tokens. For headless machines, download the latest windows release and copy finished config.json to headless machine.

This assumes setup is done on Windows machine.

Run simple query to generate configuration data

bulk-downloader-for-reddit.exe

download directory

.

select program mode

[4] submitted

redditor

USER

select sort type

[2] top

select time filter

[6] all

limit (0 for none)

1

Updated: None

A web browser will open to imgur. Setup Create Imgur API Account if not already completed.

imgur_client_id

{IMGUR CLIENT ID}

imgur_client_secret

{IMGUR CLIENT SECRET}

A second web browser window will open to reddit.

  • Login with your reddit, using two factor if needed.

  • Give permission for bulk downloader to access your account by clicking allow.

Note

The configuration file will be written to C:\Users\{USER}\Bulk Downloader for Reddit\config.json

This can be copied to the headless machine in either the script location or ~/Bulk Downloader for Reddit.