/DSImgur

Easily download images, Albums, Galleries and entire Profiles from Imgur. The most powerful Imgur Downloader!! You can use as program or as module!

Primary LanguagePythonMIT LicenseMIT

DSImgur Language Badge License Badge Status Badge Build Status

Easily download images, Albums, Galleries and entire Profiles from Imgur. The most powerful Imgur Downloader!! You can use as program or as module!

Features

Installation

Option 1: Pip

$ pip install DSImgur

Option 2: From source

$ git clone https://github.com/DiSiqueira/DSImgur.git
$ cd DSImgur/
$ python setup.py install

Usage

Basic usage

# Download a image
$ DSImgur https://imgur.com/eUrbKtO
# Download a direct
$ DSImgur https://i.imgur.com/eUrbKtO.jpg
# Download a Album
$ DSImgur https://imgur.com/a/iwWZm
# Download a Gallery
$ DSImgur https://imgur.com/gallery/3ttnIn2
# Download a Entire Profile
$ DSImgur https://imgur.com/user/azyrusmax

Download using Workers

# Download 1 image and 2 albums using 2 Workers
$ DSImgur --workers 2 https://i.imgur.com/eUrbKtO.jpg https://imgur.com/a/iwWZm https://imgur.com/a/3ttnIn2

Set output folder

# Download 1 image and put it in my-images folder
$ DSImgur --output my-images https://i.imgur.com/eUrbKtO.jpg

Combine everything

# Download 1 image and 2 albums using 2 Workers and put on my-images folder
$ DSImgur --output my-images --workers 2 https://i.imgur.com/eUrbKtO.jpg https://imgur.com/a/iwWZm https://imgur.com/a/3ttnIn2

Module Usage

The module allows you to download url lists in your own Python programs without going through the command line. Here's an example of it's usage:

###Example

from DSImgur import DSImgur

urls = ['https://imgur.com/eUrbKtOg', 'https://i.imgur.com/eUrbKtO.jpg', 'https://imgur.com/a/iwWZm', 'https://imgur.com/gallery/3ttnIn2', 'https://imgur.com/user/azyrusmax']
workers = 2
output = 'My-Files'

DSImgur(urls, workers, output)

Requirements

Program Help

Contributing

Bug Reports & Feature Requests

Please use the issue tracker to report any bugs or file feature requests.

Developing

PRs are welcome. To begin developing, do this:

$ git clone --recursive git@github.com:DiSiqueira/DSImgur.git
$ cd DSImgur/src/

Social Coding

  1. Create an issue to discuss about your idea
  2. [Fork it] (https://github.com/DiSiqueira/DSImgur/fork)
  3. Create your feature branch (git checkout -b my-new-feature)
  4. Commit your changes (git commit -am 'Add some feature')
  5. Push to the branch (git push origin my-new-feature)
  6. Create a new Pull Request
  7. Profit! ✅

License

The MIT License (MIT)

Copyright (c) 2013-2017 Diego Siqueira

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.