- Download Network File Resources
[[email protected] test]# wget http://b.hiphotos.baidu.com/baike/c0%3dbaike80%2c5%2c5%2c80%2c26/sign=cefb726e8b82b90129a0cb6112e4c212/ 96dda144ad345982b3b0bcdb0df431adcbef8444.jpg-- .- the- - Ten: -: ---http://b.hiphotos.baidu.com/baike/c0%3dbaike80%2c5%2c5%2c80%2c26/sign=cefb726e8b82b90129a0cb6112e4c212/ 96dda144ad345982b3b0bcdb0df431adcbef8444.jpgParsing host b.hiphotos.baidu.com (b.hiphotos.baidu.com) ...58.215.118.48connecting b.hiphotos.baidu.com (b.hiphotos.baidu.com)|58.215.118.48|: the... is connected. An HTTP request has been made and is waiting for a response ... $OK Length:24282(24K) [image/JPEG] being saved to: "96dda144ad345982b3b0bcdb0df431adcbef8444.jpg" -%[==================================================>] -,282--.-k/s Time0. 004s .- the- - Ten: -: -(5.36MB/s)-Saved "96dda144ad345982b3b0bcdb0df431adcbef8444.jpg" [24282/24282]) [[email protected] test]# ls96dda144ad345982b3b0bcdb0df431adcbef8444.jpg[[email protected] test]#
- Download site resources, including files, pictures, etc.
[[email protected] test]# Wget-r-P http://www.cnblogs.com/-- .- the- - Ten: -: ---http://www.cnblogs.com/Parsing host www.cnblogs.com (www.cnblogs.com) ...42.121.252.58connecting www.cnblogs.com (www.cnblogs.com)|42.121.252.58|: the... is connected. An HTTP request has been made and is waiting for a response ... $OK Length:45907(45K) [text/HTML] is being saved to: "Www.cnblogs.com/index.html " -%[==================================================>] $,907--.-k/s Time0. 02s .- the- - Ten: -: -(2.25MB/s)-Saved "www.cnblogs.com/index.html" [45907/45907]) is loading robots.txt; Please ignore the error message. -- .- the- - Ten: -: ---http://Www.cnblogs.com/robots.txtUse the existing to www.cnblogs.com again: thethe connection. An HTTP request has been made and is waiting for a response ... $OK Length: at[text/Plain] Saving to: "Www.cnblogs.com/robots.txt "... [[email protected] test]# lswww.cnblogs.com[[email protected] test]# ls www.cnblogs.com/aboutus.aspx chiyueqi durow liqingwen robots.txt wenhxaggsite CloudMan6 en-heng Liuxianan season-Huang Wrcylanrainie cmt farb mafly sitehome Yinchengaoyeyuyan coco1s Following mindwind skins.aspx zhangweizhongbeidan comment h-HQ Miro Smyhvae zhaopeibundles contactus.aspx Images News Strickcandi Date crazyacking index.html Pengfeiz taoxucate cyq1162 ios122 pick Vajo ycc011Double-K Jietang printhelloworld wanghzh[[email protected] test]#
wget parameters:
1"- Download all the resources in the page, including pictures, videos, etc. 2"-R recursive download
Linux command-wget