Download webpage for offline reading - wget
During web browsing, often I feel that I have to save that web pages for further reading. In such situations, always I bookmark URL & later return to that web page in my free time.
But recently, I got enough free time. But there is no internet access! So I need to find out a way to download website completely for offline reading.
There is too many tools like HTTrack. Also we can use default
wget --mirror --convert-links --adjust-extension --page-requisites --no-parent http://example.org
The above command will download example.org webpage & and convert all links to access offline.
We can also shorten the above command.
wget -mkEpnp http://example.org
Explanation of the various flags that used in this command is given below.
--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.
Do you need any help on Linux & Linux Commands? I'm happy to help you.
Fill the form & submit your query. I will get back to you soon.
- Unzip zip file using PHP
- Handle custom form in WordPress
- Disable single page view & archive page view of Custom Post Type - WordPress
- Get variation product data on selecting variation options - WooCommerce
- Add TinyMCE WYSIWYG (Rich text area) meta box - WordPress
Your Questions / Comments
If you found this article interesting, found errors, or just want to discuss about them, please get in touch.