GithubHelp home page GithubHelp logo

redyt's Introduction

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

$ 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

redyt's People

Contributors

alexbocken avatar bugswriter avatar paniash avatar saloniamatteo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

redyt's Issues

Cannot view images after download

I get this error message after downloading the images from a subreddit:

sxiv: /home/ashish/.cache/redyt/*.png: No such file or directory
sxiv: /home/ashish/.cache/redyt/*.jpg: No such file or directory
sxiv: No valid image file given, aborting

Not sure what's going on. :-(

Script Failing

After running the script with my desired subreddit, I see the files appearing in .cache/redyt
HOWEVER, after the script ends all of them dissapear and I get this:

FINISHED --2020-12-30 14:36:14--
Total wall clock time: 16s
Downloaded: 101 files, 38M in 7,3s (5,20 MB/s)
sxiv: /home/outer/.cache/redyt/.png: No such file or directory
sxiv: /home/outer/.cache/redyt/
.jpg: No such file or directory
sxiv: No valid image file given, aborting

License ?

License isn't mentioned anywhere.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.