pipx install git+https://github.com/devicarus/grabbit.git
-
Create a Reddit app with the following values:
- name
anything, e.g. Grabbit
- ๐ script
- redirect URI
http://localhost:8080
- name
-
Create a
.json
file with the following structure:{ "username": "YOUR_REDDIT_USERNAME", "password": "YOUR_REDDIT_PASSWORD", "client_id": "YOUR_CLIENT_ID", "client_secret": "YOUR_CLIENT_SECRET" }
> grabbit --help
Usage: grabbit [OPTIONS] OUTPUT_DIR USER_CONFIG
OUTPUT_DIR is the directory where the downloaded files will be saved
USER_CONFIG is the path to a JSON file containing Reddit user credentials
Options:
-d, --debug Turn on activate debug mode.
--csv FILENAME Use Reddit GDPR saved posts export CSV file.
--skip-failed Skip previously failed downloads.
--version Show the version and exit.
--help Show this message and exit.
Reddit's API only allows access to the latest circa 1000 saved posts.
To download all saved posts, you can request your Reddit data and use the --csv
option with the exported CSV file.
Grabbit downloads (or at least tries to) all media from saved posts, including images and videos, as well as metadata such as title, author's username and text if there is any.
Grabbit does not download comments.
Grabbit is not intended for backing up entire subreddits or other users' profiles.