Skip to content

Instantly share code, notes, and snippets.

@jpawlowski
Last active January 21, 2017 16:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save jpawlowski/7af3920f4814869a4b32 to your computer and use it in GitHub Desktop.
Save jpawlowski/7af3920f4814869a4b32 to your computer and use it in GitHub Desktop.
Download all current video torrents of 32c3 congress at once under OS X. It uses GNU grep installed via Homebrew. Credits go to @jansauer https://twitter.com/jansauer/status/681253309777358849
brew install homebrew/dupes/grep; wget -q -O - https://cdn.media.ccc.de/congress/32C3/h264-hd/ | ggrep -oP '(?<=href=")[^"]*\.mp4(?=")' | xargs -I % bash -c 'test ! -f % && wget -q -nc "https://cdn.media.ccc.de/congress/32C3/h264-hd/%.torrent"'
@HieronymusCH
Copy link

Hallo Jan
vielen Dank für dieses praktische Skript. Funktioniert sogar mit dem webm-hd Format.
Ich musste nur ein g bei grep weglassen, und schon funktioniert es bei mir.

@sinetek
Copy link

sinetek commented Feb 12, 2016

another version that's more portable, works on linux too
https://gist.github.com/sinetek/844201570c4c27131694

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment