Created
July 7, 2014 17:41
-
-
Save jadedgnome/6e458056eecf1f08798f to your computer and use it in GitHub Desktop.
downloader
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# makeagif.com dl | |
# USAGE: ./makegif-dl.sh <URL> | |
URL=$1 | |
curl -s $URL |grep -o '<img src=['"'"'"][^"'"'"']*['"'"'"]' | sed -e 's/<img src=["'"'"']//' -e 's/["'"'"']$//' |grep .cdn | xargs curl --retry 3 -O -J |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment