Last active
August 29, 2015 14:06
-
-
Save pboehm/5fa59b2f848c613ebe65 to your computer and use it in GitHub Desktop.
Flickr downloader using flickrit
This file contains hidden or 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
# run 8 wgets downloading one link at a time | |
curl http://flickrit.pboehm.org/photos/phboehm | \ | |
python -c 'import json, sys; data = json.loads(sys.stdin.read()); links = [e["url_o"] for e in data ]; print "\n".join(links)' | \ | |
xargs -n 1 -P 8 wget | |
# using jq | |
curl http://flickrit.pboehm.org/photos/phboehm | jq ".[] .url_o" | xargs -n1 -P 8 wget |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment