Linux 爬虫

curl https://www.msi.umn.edu/tutorial-materials >tmp.txt
perl -alne ‘{/(https.*?pdf)/;print $1 if $1}’ tmp.txt >pdf.address
perl -alne ‘{/(https.*?txt)/;print $1 if $1}’ tmp.txt
perl -alne ‘{/(https.*?zip)/;print $1 if $1}’ tmp.txt >zip.address
wget -i pdf.address
wget -i pdf.zip
posted @ 2015-10-06 10:28  liuhui_pine  阅读(154)  评论(0编辑  收藏  举报