wget 下载整个网站源码
2022-11-18 09:03:47
182
{{single.collect_count}}

欢迎关注原创视频教程

Python微信订餐小程序课程视频

https://edu.csdn.net/course/detail/36074

Python实战量化交易理财系统

https://edu.csdn.net/course/detail/35475

wget 下载整个网站源码

在linux下可以使用wget递归下载整个网站前端源代码 具体如下:

wget -r -p -np -k http://v.bootstrapmb.com/2019/6/cfx6e5241/material/

各参数说明如下

-c, --continue resume getting a partially-downloaded file. 断点续传-nd, --no-directories don't create directories. 不创建层级目录,所有文件下载到当前目录-r, --recursive specify recursive download. 递归下载-p, --page-requisites get all images, etc. needed to display HTML page.下载页面所有文件,使页面能在本地打开-k, --convert-links make links in downloaded HTML or CSS point to local files.转换链接指向本地文件-np, --no-parent don't ascend to the parent directory. 不下载父级目录的文件-o, --output-file=FILE log messages to FILE. 指定日志输出文件-O, --output-document=FILE write documents to FILE. 指定文件下载位置-L, --relative follow relative links only. 只下载相对链接,如果页面嵌入其他站点不会被下载
回帖
全部回帖({{commentCount}})
{{item.user.nickname}} {{item.user.group_title}} {{item.friend_time}}
{{item.content}}
{{item.comment_content_show ? '取消' : '回复'}} 删除
回帖
{{reply.user.nickname}} {{reply.user.group_title}} {{reply.friend_time}}
{{reply.content}}
{{reply.comment_content_show ? '取消' : '回复'}} 删除
回帖
收起
没有更多啦~
{{commentLoading ? '加载中...' : '查看更多评论'}}