AhmadIbrahiim/Website-downloader

GitHub: AhmadIbrahiim/Website-downloader

基于 wget 和 Node.js 的完整网站下载工具,通过 Web 界面将目标网站的所有源码和静态资源递归抓取并打包为压缩文件。

Stars: 4811 | Forks: 1088

## 完整网站下载器 💾 下载任何网站的完整源代码(包括所有 assets)🔨。 👉 在线演示:https://website-downloader.onrender.com ![输入图像描述](https://github.com/AhmadIbrahiim/Website-downloader/blob/master/public/Record.gif?raw=true)
![CodeFactor](https://www.codefactor.io/repository/github/ahmadibrahiim/website-downloader/badge)
## 描述 📒 Website downloader 使用 `wget` 和 `archiver` 下载所有网站 assets 并进行压缩,然后通过 socket channel 发送回用户 **正在使用的 wget 参数** `wget --mirror --convert-links --adjust-extension --page-requisites --no-parent http://example.org` **各种 flag 的说明:** - --mirror – 使下载变为递归式(除其他功能外)。 - --convert-links – 将所有链接(也包括指向 CSS 样式表等内容的链接)转换为相对路径,以便适合离线查看。 - --adjust-extension – 根据 content-type 为文件名添加合适的扩展名(html 或 css)。 - --page-requisites – 下载正确离线显示页面所需的 CSS 样式表和图像等内容。 - --no-parent – 在递归时不向上追溯至父目录。这对于将下载限制在网站的特定部分非常有用。 ### 在云提供商上部署 [![Run on Replit](https://binbashbanana.github.io/deploy-buttons/buttons/remade/replit.svg)](https://replit.com/github/AhmadIbrahiim/Website-downloader) [![Remix on Glitch](https://binbashbanana.github.io/deploy-buttons/buttons/remade/glitch.svg)](https://glitch.com/edit/#!/import/github/AhmadIbrahiim/Website-downloader) [![Deploy on Railway](https://binbashbanana.github.io/deploy-buttons/buttons/remade/railway.svg)](https://railway.app/new/template?template=https://github.com/AhmadIbrahiim/Website-downloader) [![Deploy to Cyclic](https://binbashbanana.github.io/deploy-buttons/buttons/remade/cyclic.svg)](https://app.cyclic.sh/api/app/deploy/AhmadIbrahiim/Website-downloader) [![Deploy to Koyeb](https://binbashbanana.github.io/deploy-buttons/buttons/remade/koyeb.svg)](https://app.koyeb.com/deploy?type=git&repository=github.com/AhmadIbrahiim/Website-downloader&branch=main&name=Website-downloader) [![Deploy to Render](https://binbashbanana.github.io/deploy-buttons/buttons/remade/render.svg)](https://render.com/deploy?repo=https://github.com/AhmadIbrahiim/Website-downloader) ## 如何运行它 🤔 - `git clone https://github.com/AhmadIbrahiim/Website-downloader.git` - `cd Website-downloader` - `$ npm install` - `$ npm start` - `http://localhost:3000/` ## 喜欢它吗?你可以请我喝杯咖啡: Buy Me A Coffee 谢谢你, Email: me@ahmed-ibrahim.com https://www.ahmed-ibrahim.com
标签:GNU通用公共许可证, MITM代理, Node.js, Web爬虫, wget, 后端开发, 数据可视化, 文件归档, 离线浏览, 网站下载, 调试辅助