Last active
October 20, 2016 04:40
-
-
Save wixb50/bd386260df0aab72db05267a3defad4b to your computer and use it in GitHub Desktop.
爬取图片shell,just run:`curl -s https://gist.githubusercontent.com/wixb50/bd386260df0aab72db05267a3defad4b/raw/4474358ae5605682e89d8c18779d60f8d0e50bc6/spider.sh | bash -s`
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
K=`curl -s http://www.symmz.com/sitemap_baidu.xml | ack -o 'http://www.symmz.com/\w+/\d+-\d+.html'` | |
for item in `echo $K`;do | |
ack -o 'http://img.symmz.com/images/\w+/\d{8}/\w+.jpg' html/`cd html && curl -s "$item" -O -w '%{filename_effective}' ` | xargs -L 1 bash -cx 'cd jpg && wget -c $0' | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment