Is there any way to use common web browsers such as firefox to fetch a page using command line interface? If I use
firefox www.google.com, then firefox is opened and shows google page. I want to fetch the web site and save that a one or a bunch of files.
you can download full webpage using
wget \ --recursive \ --no-clobber \ --page-requisites \ --html-extension \ --convert-links \ --restrict-file-names=windows \ --domains website.com \ --no-parent \ www.website.com
The options are:
recursive: download the entire Web site.
domains website.com: don't follow links outside website.com.
no-parent: don't follow links outside the directory
page-requisites: get all the elements that compose the page (images, CSS and so on).
html-extension: save files with the
convert-links: convert links so that they work locally, off-line.
restrict-file-names=windows: modify filenames so that they will work in Windows as well (if needed).
no-clobber: don't overwrite any existing files (used in case the download is interrupted and resumed).