Code Monkey home page Code Monkey logo

imagedownloader's Introduction

ImageDownloader

ImageDownloader provides a way to filter images by specifying a minimum and maximum resolution.

Features

ImageDownloader supports downloading and filtering images originating from Reddit and Imgur, as well as images located in local directories. The user can specify a maximum and minimum resolution that images from all supported sources must fit. Exact resolutions can be specified by choosing identical minimum and maximum requirements.

The following image sources are supported:

  • Imgur albums and account profiles.
  • Reddit posts can be sourced from any subreddit, with additional filtering options. Posts linking to i.redd.it, DeviantArt, or Imgur images are explicitly supported, as well as Imgur albums. An attempt is made at downloading any other image linked to, if the url ends in one of the whitelisted image extensions.
  • Files in local directories can also be filtered. Images that adhere to the resolution requirements are copied into the destination folder, without modifying the original files.

When posts are grabbed from Reddit, the following additional options are supported:

  • You can specify to pull posts from the main subreddit page, or from other tabs such as new or top.
  • It is possible to specify whether to include posts marked NSFW in the results.
  • Links to Imgur albums are parsed and will apply the resolution-filter to all images in that album. It is possible to skip these Imgur albums if so desired.
  • The user can specify how many posts to pull, which will automatically page through the reddit posts using the &after and &count api parameters. This option is currently limited to 1000 posts.

Usage

To download any number of Reddit posts from a specific subreddit, simply specify the subreddit, the output folders, and optionally add filters.

The following UI example will download images from the top 25 posts of all time from the wallpapers-subreddit, provided that the image resolution is between 1920x1080 - 2540x1440, that the post doesn't link to an album, and that the post hasn't been marked NSFW:

Example of the Reddit tab UI

License

Released under the MIT license.

imagedownloader's People

Contributors

jameak 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

Watchers

 avatar  avatar  avatar  avatar  avatar

imagedownloader's Issues

Program crashes

Program crashes about halfway through download, then restarting it I can't get it to skip already downloaded files. I'm downloading the same 300-400 images over and over. Any way to fix? Why do you think it's crashing?
croppercapture 1

Need to add webp extension for Chrome users

I use the Chrome Browser which causes the website (Reddit) to serve pictures for saving in the .webp format. If one of the pictures to be downloaded doesn't offer at least one version of the picture in the .jpg format (usually the last, largest picture you get from continually clicking on the picture), your ImageDownloader will skip the picture. So if ALL the pictures available are only served by the website in the .webp format, your downloader skips that picture.

You can test this yourself by using a Chrome Browser to download pictures from Reddit. Find a picture that is only available in the .webp format. When you download all the pictures in that r/(subject), that picture will not be downloaded.

If you add webp. to the acceptable formats, at least I can view and choose the pictures I want from the download folder. Thank you.

Albums into separate folders

Have an option to put images that are part of an album into a separate folder, based on the title of the album, inside the directory given as the 'target folder'.

Not downloading all images from IMGUR

My usecase is that I have saved a lot of posts to my favorites, and would like to download them.
I go to my favorites, and to the folder I want to download posts from.
I right click the post and copy link.
I have a third party program that converts the link from
https://imgur.com/user/<any username here>/favorites/folder/<any folder ID here>/<any folder name here>/<post ID>
to
https://imgur.com/gallery/<post ID>

I paste this to Album URL in ImageDownloader, and have log showing.
I click download.
Result on multi picture posts show that all images are downloaded.

Result on single picture posts show that 0 images are downloaded.
Now I have to open all the single image posts after the fact, and download them separately.

if possible, it would be nice to not have to do that.

Not downloading all pictures from Reddit

Hey,
I tried this software and tried your example with the wallpapers subreddit but instead of downloading 25 pictures, it only found/downloaded 4. Maybe some API has changed, do you care to check? Would love if the software was working again.

App downloads 3 .jpg of the same picture

Just discovered this amazing project, tested it and output is that every picture of the subreddit I downloaded is downloaded with 2 more copies than needed.
Basically for every pic on the subreddit I get, as output, something like this:

Original file name.jpg
Original file name(1).jpg
Original file name(2).jpg

It's boring to have to delete manually all of the (1) and (2)

new feature.

Was wondering if you would ever offer command line support for automation/pulls of diferent versions for the subreddit as I have to do Main / top/ new / rising and controversial to get every image, rename each target folder then merge everything into one directory with rclone move, to make sure no duplicates are downloaded: image (1) etc.

[Question] Imgur ID

I'm sorry but what is the Imgur ID that I can supply. Can you point me in the right direction?

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.