Skip to content

Instantly share code, notes, and snippets.

@pboehm
Last active August 29, 2015 14:06
Show Gist options
  • Save pboehm/5fa59b2f848c613ebe65 to your computer and use it in GitHub Desktop.
Save pboehm/5fa59b2f848c613ebe65 to your computer and use it in GitHub Desktop.
Flickr downloader using flickrit
# 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