July 10, 201313 yr comment_78344 Linux Bash script to download images for an Imgur album http://www.skylark95.com/2013/07/imguralbum-sh-download-imgur-albums-with-this-script/ https://gist.github.com/Skylark95/5970915#!/bin/bash## ImgurAlbum.sh## Bash script to download images for an Imgur album#if [ -z "$1" ]; then echo "ImgurAlbum: missing Album ID" echo "Usage: ImgurAlbum [Album ID]" exitelse echo "Creating directory: $1" mkdir $1 cd $1 echo "Fetching Album Images..." wget https://api.imgur.com/3/album/$1/images.xml --header='Authorization: Client-ID 1b138bce405b2e0' --quiet --output-document images-temp.xml imageCount=$(xmllint --xpath "count(/data/item)" images-temp.xml) echo "Downloading Images to: ${PWD}" for (( i=1; i<=$imageCount; i++ )); do imageLink=$(xmllint --xpath "/data/item[$i]/link/text()" images-temp.xml) echo "Downloading Image $i of $imageCount: $imageLink" wget -N $imageLink --quiet done echo "Removing temporary files..." rm images-temp.xml echo echo "DONE: Images saved to: ${PWD}" echo cd .. exitfi Report
August 13, 201313 yr comment_79228 Figured since you make apps, Sky, that you'd be interested in this. http://www.areuswade.com/precomposed-touch-gestures/ Report
August 15, 201313 yr Author comment_79262 Figured since you make apps, Sky, that you'd be interested in this. http://www.areuswade.com/precomposed-touch-gestures/ Nice!If I have an app later that can use it, I'll have to try it out. Report
Archived
This topic is now archived and is closed to further replies.