Offline mirror a website using wget

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.

comments powered by Disqus