I have posted a very similar question today but I would like to ask again with a wget/linux focus. I hope that's all right.
I need to create offline copies of web pages programmatically on a LAMP stack, preferably using PHP. I need the HTML source, attached images and CSS style sheets.
I can run things on the command line, but not install new packages.
I can do a
wget --page-requisites on the pages I want to archive. This downloads everything I need, but it does not modify the downloaded HTML and CSS files to point towards the archived files.
I am looking for an extension / Perl script / shell script that modifies the downloaded document(s) to point towards the downloaded resources, or maybe a different, Linux based solution that does this. I already checked,
httrack does not seem to be installed on the server ("whereis httrack" returns nothing).