Skip to content

Instantly share code, notes, and snippets.

@agp8x
Created December 8, 2016 09:10
Show Gist options
  • Save agp8x/1c1d8d64a9a2fed770479dabcb3cb1fe to your computer and use it in GitHub Desktop.
Save agp8x/1c1d8d64a9a2fed770479dabcb3cb1fe to your computer and use it in GitHub Desktop.
for t in iot webops-perf design programming web-platform data;do mkdir $t;for i in `curl -s http://www.oreilly.com/$t/free/|grep 'csp'|cut -d'"' -f2|cut -d? -f1`;do for l in `curl -s $i'?download=yes&order=42'|grep data-src|cut -d'"' -f2`;do wget $l -P $t;done;done;done;
for t in iot webops-perf design programming web-platform data;do mkdir $t;for i in $(curl -s http://www.oreilly.com/$t/free/|grep 'csp'|cut -d'"' -f2|cut -d? -f1);do for l in $(curl -s $i'?download=yes&order=42'|grep data-src|cut -d'"' -f2);do wget $l -P $t;done;done;done;
#for t in iot webops-perf design programming web-platform data;do mkdir $t;for i in `curl -s http://www.oreilly.com/$t/free/|grep 'csp'|cut -d'"' -f2|cut -d? -f1`;do for l in `curl -s $i'?download=yes&order=42'|grep data-src|grep pdf|cut -d'"' -f2`;do wget $l -P $t;done;done;done;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment