Skip to content

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
  1. License under CC BY-NC 4.0
  2. Copyright issue feedback me#imzye.me, replace # with @
  3. Not all the commands and scripts are tested in production environment, use at your own risk
  4. No privacy information is collected here
Try iOS App