wget -r --convert-links doc/link

1.  --restrict-file-names=windows for Windows


wget   -c -t 0  --adjust-extension    --restrict-file-names=windows   --convert-links --timestamping --page-requisites      -p   -r  -l max_recursive_depth   your_http_url_address


 
2. Document follow the link 

lake@PC-XXX:/test$ wget --level=inf --limit-rate=20K --recursive --page-requisites --user-agent=Mozilla --no-parent --convert-links --adjust-extension --no-clobber -e robots=off https://XXXXX.com/products/master/docs

3.  mirrow one site 

# One liner/txt file Windows format
wget --recursive --page-requisites --adjust-extension --span-hosts --convert-links --restrict-file-names=windows --domains yoursite.com --no-parent yoursite.com



# Explained
wget \
     --recursive \ # Download the whole site.
     --page-requisites \ # Get all assets/elements (CSS/JS/images).
     --adjust-extension \ # Save files with .html on the end.
     --span-hosts \ # Include necessary assets from offsite as well.
     --convert-links \ # Update links to still work in the static version.
     --restrict-file-names=windows \ # Modify filenames to work in Windows as well.
     --domains yoursite.com \ # Do not follow links outside this domain.
     --no-parent \ # Don't follow links outside the directory you pass in.
         yoursite.com/whatever/path # The URL to download

#backgroud  / -b  
wget -b \
     --recursive \ # Download the whole site.
     --page-requisites \ # Get all assets/elements (CSS/JS/images).
     --adjust-extension \ # Save files with .html on the end.
     --span-hosts \ # Include necessary assets from offsite as well.
     --convert-links \ # Update links to still work in the static version.
     --restrict-file-names=windows \ # Modify filenames to work in Windows as well.
     --domains opensource.rock-chips.com \ # Do not follow links outside this domain.
     --no-parent \ # Don't follow links outside the directory you pass in.
         http://opensource.rock-chips.com/wiki_Main_Page   # The URL to download

4. Download specified gif photoes only  (-H  external host outside the base linking)

wget -q -p --convert-links -rH -Dimages.xxxx.com -A.gif www.xxxx.com/*.htm

5.  For   Chinese folder name in recursive mode
Please use 
 --restrict-file-names=nocontrol 
 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值