Skip to content

A simple imgur script to download albums.

Notifications You must be signed in to change notification settings

really-need-an-api-key/Imgur

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

##About

This is a 100% Bash script used to download imgur albums while making sure that the order of the pictures is retained.

Author:
manabutameni
https://github.com/manabutameni/Imgur

##Usage

bash imgur.sh [-sdt] URL [URL]

OPTIONS
    -h       Show this message.
    -s       Silent mode. Overrides debug mode.
    -d       Debug mode.
    -t       Download image text, if present.

Multiple albums can be downloaded like so: bash imgur.sh URL1 URL2 ...

##Requirements

User @kanliot has reported (see #16) needing the spidermonkey-bin package for debian wheezy.

##Installation

Go to the imgur account settings page and create an api key. Copy and paste it onto line 6 of imgur.sh.

The following is only necessary if you want to run the script without having it in the same folder you want the imgur album, or if you want to install imgur.desktop for KDE.

curl -L https://raw.github.com/manabutameni/Imgur/master/imgur.sh -o /usr/local/bin/imgur
chmod +x /usr/local/bin/imgur

NOTE: This assumes you have /usr/local/bin/ in your $PATH. Most distributions do, but some do not.

To use:
In any directory type: imgur imgur.com/a/XXXXX

#####KDE

Copy imgur.desktop to your local kde4-config --path services folder location and make sure it's executable. chmod +x imgur.desktop.

To use: Copy the url of an imgur album into your clipboard and right click on an empty area in dolphin. Under actions you should see "Imgur Album DL".

NOTE: This will only work if you have installed the script in the Installation part of this readme.

What this script does not do

This script will not update an album. For example, if there's an album that is frequently updated that you enjoy following, this script (by design) cannot and will not update that album with the newest images. This is to prevent clobbering existing files when a directory already exists, e.g. "Pictures".

About

A simple imgur script to download albums.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Shell 100.0%