AhmadIbrahiim / Website-downloader
AhmadIbrahiim / Website-downloader
Complete Website Downloader 💾 Download the complete source code of any website (including all assets) 🔨. 完整网站下载器 💾 下载任何网站的完整源代码(包括所有资源)🔨。
👉 Live Demo: https://website-downloader.onrender.com 👉 在线演示:https://website-downloader.onrender.com
Description 📒 项目描述 📒
Website downloader works with wget and archiver to download all websites assets and compress then sends it back to the user through socket channel 该网站下载器通过配合 wget 和 archiver 工具,下载网站的所有资源并进行压缩,随后通过 socket 通道将其发送回用户。
wget params the being used: 所使用的 wget 参数:
wget --mirror --convert-links --adjust-extension --page-requisites --no-parent http://example.org
Explanation of the various flags: 各参数标志说明:
- —mirror – Makes (among other things) the download recursive.
- —mirror – 使下载具有递归性(以及其他功能)。
- —convert-links – convert all the links (also to stuff like CSS stylesheets) to relative, so it will be suitable for offline viewing.
- —convert-links – 将所有链接(包括 CSS 样式表等)转换为相对路径,以便于离线查看。
- —adjust-extension – Adds suitable extensions to filenames (html or css) depending on their content-type.
- —adjust-extension – 根据内容类型为文件名添加合适的扩展名(如 html 或 css)。
- —page-requisites – Download things like CSS style-sheets and images required to properly display the page offline.
- —page-requisites – 下载离线正确显示页面所需的 CSS 样式表和图片等资源。
- —no-parent – When recursing do not ascend to the parent directory. It useful for restricting the download to only a portion of the site
- —no-parent – 在递归时不要返回父目录。这对于将下载限制在网站的特定部分非常有用。
Deploy on cloud providers 部署到云服务提供商
How to run it 🤔 如何运行 🤔
git clone https://github.com/AhmadIbrahiim/Website-downloader.git
cd Website-downloader
$ npm install
$ npm start
How To Contribute: 如何贡献:
Open Issue(s) with any bugs you notice. Please create Pull Requests if you think it would be an added value towards our program. 如果您发现任何错误,请提交 Issue。如果您认为您的改进能为本项目带来价值,欢迎提交 Pull Request。
Liked it ? You can buy a coffee: 喜欢这个项目?您可以请我喝杯咖啡:
Thank you, Email: me@ahmed-ibrahim.com 谢谢,邮箱:me@ahmed-ibrahim.com