Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/Bugswriter/redyt
Search reddit with CLI
https://github.com/Bugswriter/redyt
Last synced: about 2 months ago
JSON representation
Search reddit with CLI
- Host: GitHub
- URL: https://github.com/Bugswriter/redyt
- Owner: Bugswriter
- Created: 2020-12-28T01:59:03.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-11-03T14:27:30.000Z (almost 2 years ago)
- Last Synced: 2024-05-12T16:36:37.783Z (5 months ago)
- Language: Shell
- Size: 28.3 KB
- Stars: 121
- Watchers: 6
- Forks: 27
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-browserless - redyt - search reddit from the commandline (Social media / Reddit)
README
# redyt
Scrape Reddit images from the Terminal
This shell script will automatically create the following folder:
- `~/.config/redyt`
Also, another file, containing the subreddits, will be created:
- `~/.config/redyt/subreddit.txt`
If the user does not modify this file, it will contain, by default, subreddit `linuxmemes`.
However, this default subreddit can be changed by modifying the variable `defaultsub`.Note that you can either pass a subreddit as an argument (`./redyt [your-subreddit]`)
or, from `dmenu`, type the name of another subreddit.Here's an example of a custom `subreddit.txt`: http://0x0.st/-rbq.txt
Please note: you will need to install the following programs:
- dmenu (User Input)
- jq (JSON parsing)
- sxiv (Image Viewing)`notify-send` is also recommended but, if not present, `echo` will be used as a notifier.
## Usage
```sh
$ redyt [-l LIMIT] [-v] [-k] [SUBREDDIT]
$ redyt [--limit LIMIT] [--verbose] [--keep] [SUBREDDIT]
```## Arguments
* `-l LIMIT, --limit LIMIT` set the maximum number of files to be downloaded
* `-k, --keep` don't remove files after quitting `sxiv`
* `-v, --verbose` use notifier