bash - Creating a static copy of a web page on UNIX commandline / shell script -


i need create static copy of web page (all media resources, css, images , js included) in shell script. copy should openable offline in browser.

some browsers have similar functionality (save as... web page, complete) create folder page , rewrite external resources relative static resources in folder.

what's way accomplish , automatize on linux command line given url?

you can use wget this:

wget --recursive --convert-links --domains=example.org http://www.example.org 

this command recursively download page reachable hyperlinks page @ www.example.org not following links outside example.org domain.

check wget manual page more options controlling recursion.


Comments

Popular posts from this blog

ios - iPhone/iPad different view orientations in different views , and apple approval process -

java Extracting Zip file -

C# WinForm - loading screen -