Skip to content

Instantly share code, notes, and snippets.

@viko16
Last active August 29, 2015 14:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save viko16/17e75b0e116b9f1fa581 to your computer and use it in GitHub Desktop.
Save viko16/17e75b0e116b9f1fa581 to your computer and use it in GitHub Desktop.
wget下载整站

wget -r -p -np -k http://aaa.com/

  • -r, --recursive(递归) specify recursive download.(指定递归下载)
  • -k, --convert-links(转换链接) make links in downloaded HTML point to local files.(将下载的HTML页面中的链接转换为相对链接即本地链接)
  • -p, --page-requisites(页面必需元素) get all images, etc. needed to display HTML page.(下载所有的图片等页面显示所需的内容)
  • -np, --no-parent(不追溯至父级) don't ascend to the parent directory.
  • 另外断点续传用-nc参数 日志 用-o参数
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment