Use wget to download the whole website in one command
wget -r -p -np -k -P ./data/ http://example.com/eg/
具体参数:
-P 表示下载到哪个目录
-r 表示递归下载
-np 表示不下载旁站连接
-k 表示将下载的网页里的链接修改为本地链接
-p 获得所有显示网页所需的元素
Disclaimer
- License under
CC BY-NC 4.0
- Copyright issue feedback
me#imzye.me
, replace # with @ - Not all the commands and scripts are tested in production environment, use at your own risk
- No privacy information is collected here