Last active
August 29, 2015 14:02
-
-
Save feefk/6697036e9694e91dae8d to your computer and use it in GitHub Desktop.
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
Long time no C. 今天为大家带来WWDC 2014 sessoin PDFs & Videos的下载脚本。 | |
多线程下载请安装axel (brew install axel) | |
PDFs: | |
curl https://developer.apple.com/videos/wwdc/2014/ | grep -ioI 'http.*pdf?dl=1' | sed 's/\?dl=1//g' | xargs -n1 axel -a -n 4 | |
Videos: | |
curl https://developer.apple.com/videos/wwdc/2014/ | grep -ioI 'http.*._hd_.*dl=1">HD' | sed -e 's/\?dl=1">HD//g'| xargs -n1 axel -a -n 8 | |
单线程下载请替换最后的piping section为 xargs -n1 curl --remote-name | |
转自:http://www.iwangke.me/2014/06/07/wwdc-2014-download-script/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment