Skip to content

sky-cypher/redyt

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

57 Commits
 
 
 
 

Repository files navigation

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 selector, 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 or rofi or fzf (User Input)
  • jq (JSON parsing)
  • (n)sxiv or feh or imv (Image Viewing)

notify-send is also recommended but, if not present, echo will be used as a notifier.

Usage

$ redyt [-l LIMIT] [-s SORT] [-v] [-k] [-a] [-n] [SUBREDDIT]
$ redyt [--limit LIMIT] [--sort SORT] [--verbose] [--keep] [--append] [--notify] [SUBREDDIT]

Arguments

  • -l LIMIT, --limit LIMIT set the maximum number of files to be downloaded
  • -k, --keep don't remove files after quitting image viewer
  • -v, --verbose use progress
  • -n, --notify use notifier
  • -s, --sort change post sort type
  • -a, --append append subreddit in config file (implicit sorting)

About

Search reddit with CLI

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%