Last active
January 21, 2017 16:54
-
-
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
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
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"' |
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
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.