Code Monkey home page Code Monkey logo

python-imgur-album-download's Introduction

Imgur Album Downloader

imgur_download is a small python script to download all images from an Imgur album.

Requirements

  • Registrating with the Imgur API due to their requirments (no unauthenticated requests are accepted)
  • Python 2.7 or greater
  • pip to install Imgur's python wrapper

Installation

  1. Copy example.config.yaml to ~/.config/imgur_downloader/config.yaml or any other location
  2. Register for an Imgur API application here (Remember the Client ID and Client Secret!)
  3. Fill in imgur_client_id and imgur_client_secret in config.yaml

Usage

$ ./imgur_downloader -h
usage: imgur_downloader [-h] [-c CONFIG] -a ALBUM [-d DIRECTORY]

Download an Imgur album/gallery into a folder.

optional arguments:
  -h, --help            show this help message and exit
  -c CONFIG, --config CONFIG
                        config file to load settings from
  -a ALBUM, --album ALBUM
                        album ID to download from Imgur (can be specified
                        multiple times)
  -d DIRECTORY, --directory DIRECTORY
                        directory to save images into

Get your Imgur album ID (https://imgur.com/a/<album ID>/) and pass it to the script!

If your Imgur URL is http://imgur.com/a/3sHNB your album ID is 3sHNB

$ ./imgur_downloader -a 3sHNB

Download multiple albums at once by specifying multiple ID's

$ ./imgur_downloader -a 3sHNB -a 5jBc45

By default the script will download the images into the current working directory, otherwise you can specify a directory by passing -d to the script

$ ./imgur_downloader -a 3sHNB -a 5jBc45 -d ~/Wallpapers

License

See LICENSE

Credit

Written by James Loh (@itsjloh)

python-imgur-album-download's People

Contributors

jloh avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

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.