Offline mirror a website using wget

Feb 9, 2013 00:00 · 77 words · 1 minute read wget to mirror website mirror website wget recursice downloads

Use the following wget command to mirror a website

 
wget -mkpb some-website-url
  • -m mirrors the entire website
  • -k converts all links to suitable web viewing.
  • -p downloads all required files like that of the css, js …
  • -b wget will run in background

This method won’t work for many websites as their server will block wget from downloading. I will update this post soon, we can use user agents in wget to mock wget as a browser.

tweet Share