How can I download an entire website?
wget --mirror -p --convert-links -P ./LOCAL-DIR WEBSITE-URL
–mirror
: turn on options suitable for mirroring.-p
: download all files that are necessary to properly display a given HTML page.–convert-links
: after the download, convert the links in document for local viewing.-P ./LOCAL-DIR
: save all the files and directories to the specified directory.
Just run the command on linux environment:
wget -r http://www.google.com