Crates.io | gert |
lib.rs | gert |
version | 0.2.6 |
source | src |
created_at | 2022-11-03 22:45:29.586885 |
updated_at | 2023-11-11 19:15:43.423255 |
description | CLI tool to download media from Reddit |
homepage | https://github.com/mcdallas/gert |
repository | https://github.com/mcdallas/gert |
max_upload_size | |
id | 704687 |
size | 127,971 |
A command line tool to download media from Reddit
There is a soft dependency on ffmpeg, for installation instructions follow this link.
You can skip it but without it:
If you already have Rust installed, you can install using cargo
:
cargo install gert
brew tap mcdallas/gert
brew install gert
just grab the latest release for your OS
Simply pass the names of the subreddits you want to download media from with (multiple) -s
flags
gert -s wallpapers -s earthporn
To download media from a single post/collection just pass the url of the post
gert https://old.reddit.com/r/wallpapers/comments/tckky1/some_walls_from_my_collections_vol6/
Simple CLI tool to download media from Reddit
USAGE:
gert [FLAGS] [OPTIONS] <URL> --subreddit <SUBREDDIT>...
FLAGS:
-c, --conserve-gifs Disable gif to mp4 conversion
--debug Show the current config being used
-r, --dry-run Dry run and print the URLs of saved media to download
-h, --help Prints help information
-H, --human-readable Use human readable names for files
-V, --version Prints version information
OPTIONS:
-e, --from-env <ENV_FILE> Set a custom .env style file with secrets
-f, --feed <feed> Feed to download from [default: hot] [possible values: hot, new, top, rising]
-l, --limit <LIMIT> Limit the number of posts to download [default: 25]
-m, --match <MATCH> Pass a regular expresion to filter the title of the post
-o, --output <DATA_DIR> Directory to save the media to [default: .]
-p, --period <PERIOD> Time period to download from [default: day] [possible values: now, hour, day,
week, month, year, all]
-s, --subreddit <SUBREDDIT>... Download media from these subreddits
-u, --upvotes <NUM> Minimum number of upvotes to download [default: 0]
ARGS:
<URL> URL of a single post to download
Authentication is not required but if you want a more generous rate limit you can create a new app in reddit and pass your credentials to gert
gert
gert.env
:CLIENT_ID="<client_id>"
CLIENT_SECRET="<client_secret>"
USERNAME="<username>"
PASSWORD="<password>"
NOTE: If you have 2FA enabled, please make sure you set PASSWORD=<password>:<2FA_TOTP_token>
instead