# 网站镜像器 **Repository Path**: fkly/website-mirrorer ## Basic Information - **Project Name**: 网站镜像器 - **Description**: No description available - **Primary Language**: Unknown - **License**: MulanPSL-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2024-08-25 - **Last Updated**: 2025-04-21 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 网站镜像器 ### 使用帮助 ```shell python DownloadWeb.py --help usage: DownloadWeb.py [-h] [-u ] [-d ] [-o ] [-l ] [-m ] [-c] [-lo] [-k ] [-j ] LF工具箱-网站镜像器 options: -h, --help show this help message and exit -u, --url 网址 -d, --domain 域名 逗号隔开 -o, --output 保存位置 -l, --level 镜像层数 -m, --max_tasks 多进程数量 -c, --cmd_show 终端输出(默认显示) -lo, --link_other 是否允许访问域外 -k, --cookie 携带cookie字符串 -j, --json json文件路径 ``` ### 配置文件执行 `config.json` ```json { "url": "https://www.baidu.com/", "domain": "www.baidu.com", "output": "output", "level": 1, "max_tasks": 10, "cmd_show": true, "link_other": false, "cookie": "" } ``` ```shell python DownloadWeb.py -j config.json ``` ### shell版本 > 域名用 `,` 隔开 ```shell python DownloadWeb.py -u="http://localhost/" -d="localhost" ``` > 页面和1层 子页面 ```shell python DownloadWeb.py -u="http://localhost/" -d="localhost" -l=2 ``` > 指定保存位置 ```shell python DownloadWeb.py -u="http://localhost/" -d="localhost" -o="hello/" python DownloadWeb.py -u="http://localhost/" -d="localhost" -o="F:\pagedown" ``` > 同时请求10次 ```shell python DownloadWeb.py -u="http://localhost/" -d="localhost" -m=10 ``` > 静默模式 ```shell python DownloadWeb.py -c -u="http://localhost/" -d="localhost" -c ``` > 允许访问域外 > domain 不会放开 ```shell python DownloadWeb.py -u="http://localhost/" -d="localhost" -lo ``` > 携带cookie字符串 ```shell python DownloadWeb.py -u="http://localhost/admin/" -d="localhost" -k="auth=feimao%7C17545b75c6d0fb75c6d0f25b75c625b75c69d0f25b75c69978;" ```