# Website Downloader | Download The Complete Source Code Of Any Website (Including All Assets)

**URL:** <https://onehack.st/t/website-downloader-download-the-complete-source-code-of-any-website-including-all-assets/146585>\
**Category:** Tools & Scripts\
**Tags:** programming, downloaders\
**Created:** [October 11, 2020, 3:15pm UTC](https://onehack.st/t/website-downloader-download-the-complete-source-code-of-any-website-including-all-assets/146585 "2020-10-11T15:15:11Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![BlueHacker](https://onehack.st/user_avatar/onehack.st/bluehacker/32/174721_2.png) [@BlueHacker](https://onehack.st/u/BlueHacker)\
**Post date:** [October 11, 2020, 3:15pm UTC](https://onehack.st/t/website-downloader-download-the-complete-source-code-of-any-website-including-all-assets/146585/1 "2020-10-11T15:15:11Z")

</div>

[![CodeFactor](https://camo.githubusercontent.com/63d95e8e45728fd3f4c08987f96783463833f674/68747470733a2f2f7777772e636f6465666163746f722e696f2f7265706f7369746f72792f6769746875622f61686d6164696272616869696d2f776562736974652d646f776e6c6f616465722f6261646765)](https://www.codefactor.io/repository/github/ahmadibrahiim/website-downloader)

## Complete Website Downloader 💾

Download the complete source code of any website (including all assets) 🔨.

👉 Live Demo: [https://site-dwloader.herokuapp.com/](https://site-dwloader.herokuapp.com/)

[![enter image description here](https://github.com/AhmadIbrahiim/Website-downloader/raw/master/public/Record.gif?raw=true)](https://github.com/AhmadIbrahiim/Website-downloader/blob/master/public/Record.gif?raw=true)

## 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 params the being used**

`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.
- –convert-links – convert all the links (also to stuff like CSS stylesheets) to relative, so it will be suitable for offline viewing.
- –adjust-extension – Adds suitable extensions to filenames (html or css) depending on their content-type.
- –page-requisites – Download things like CSS style-sheets and images required to properly display the page offline.
- –no-parent – When recursing do not ascend to the parent directory. It useful for restricting the download to only a portion of the site

## How to run it 🤔

- git clone this repo
- `$ npm install`
- `$ npm start`

## GitHub:

[https://github.com/AhmadIbrahiim/Website-downloader](https://github.com/AhmadIbrahiim/Website-downloader)

---

<div class="post-metadata">

**Author:** ![bowbow7](https://onehack.st/user_avatar/onehack.st/bowbow7/32/17494_2.png) [@bowbow7](https://onehack.st/u/bowbow7)\
**Post date:** [October 11, 2020, 6:52pm UTC](https://onehack.st/t/website-downloader-download-the-complete-source-code-of-any-website-including-all-assets/146585/2 "2020-10-11T18:52:46Z")

</div>

I this better then httrack?

---

<div class="post-metadata">

**Author:** ![James\_Perez](https://onehack.st/user_avatar/onehack.st/james_perez/32/18710_2.png) [@James\_Perez](https://onehack.st/u/James_Perez)\
**Post date:** [October 11, 2020, 8:28pm UTC](https://onehack.st/t/website-downloader-download-the-complete-source-code-of-any-website-including-all-assets/146585/3 "2020-10-11T20:28:33Z")

</div>

Hi, looks good man. Keep doing cool stuffs.

---

<div class="post-metadata">

**Author:** ![TelB](https://onehack.st/user_avatar/onehack.st/telb/32/75749_2.png) [@TelB](https://onehack.st/u/TelB)\
**Post date:** [October 23, 2020, 11:24am UTC](https://onehack.st/t/website-downloader-download-the-complete-source-code-of-any-website-including-all-assets/146585/4 "2020-10-23T11:24:48Z")

</div>

I cannot say Thank you enough for this. I did not know that this was available.  
Truly remarkable!  
Big Thank you!

---

<div class="post-metadata">

**Author:** ![hendry\_joseph](https://onehack.st/user_avatar/onehack.st/hendry_joseph/32/29531_2.png) [@hendry\_joseph](https://onehack.st/u/hendry_joseph)\
**Post date:** [October 24, 2020, 4:33am UTC](https://onehack.st/t/website-downloader-download-the-complete-source-code-of-any-website-including-all-assets/146585/5 "2020-10-24T04:33:21Z")

</div>

appreciated for the trick

---

<div class="post-metadata">

**Author:** ![Lucky\_Finds\_You](https://onehack.st/user_avatar/onehack.st/lucky_finds_you/32/50507_2.png) [@Lucky\_Finds\_You](https://onehack.st/u/Lucky_Finds_You)\
**Post date:** [October 31, 2020, 4:30pm UTC](https://onehack.st/t/website-downloader-download-the-complete-source-code-of-any-website-including-all-assets/146585/6 "2020-10-31T16:30:35Z")

</div>

link down ☹

---

<div class="post-metadata">

**Author:** ![Dela](https://onehack.st/user_avatar/onehack.st/dela/32/76744_2.png) [@Dela](https://onehack.st/u/Dela)\
**Post date:** [October 31, 2020, 4:48pm UTC](https://onehack.st/t/website-downloader-download-the-complete-source-code-of-any-website-including-all-assets/146585/7 "2020-10-31T16:48:02Z")

</div>

Great site - Thank you for sharing this!  
Unfortunately the site appears to be down at the moment. I hope that it comes back up again.  
Cheers  
Dela

---

<div class="post-metadata">

**Author:** ![Dela](https://onehack.st/user_avatar/onehack.st/dela/32/76744_2.png) [@Dela](https://onehack.st/u/Dela)\
**Post date:** [November 1, 2020, 1:21pm UTC](https://onehack.st/t/website-downloader-download-the-complete-source-code-of-any-website-including-all-assets/146585/8 "2020-11-01T13:21:41Z")

</div>

Great! The site is back up again.  
I missed it while it was down.

---

<div class="post-metadata">

**Author:** ![pankaj260](https://onehack.st/user_avatar/onehack.st/pankaj260/32/18769_2.png) [@pankaj260](https://onehack.st/u/pankaj260)\
**Post date:** [November 2, 2020, 1:06am UTC](https://onehack.st/t/website-downloader-download-the-complete-source-code-of-any-website-including-all-assets/146585/9 "2020-11-02T01:06:18Z")

</div>

Absolutely useless

---

<div class="post-metadata">

**Author:** ![sfhussain8](https://onehack.st/letter_avatar_proxy/v4/letter/s/48db29/32.png) [@sfhussain8](https://onehack.st/u/sfhussain8)\
**Post date:** [November 2, 2020, 8:59pm UTC](https://onehack.st/t/website-downloader-download-the-complete-source-code-of-any-website-including-all-assets/146585/10 "2020-11-02T20:59:35Z")

</div>

Seem to be pretty exciting.. Thank you by the way.. 🙂
