简体   繁体   中英

wget --page-requisites locally?

I have a local HTML file referencing image and style data in various places in the local file system. I'd like to get a list of all referenced files; or alternatively a command that will copy the HTML files and all referenced files to some clear location (with or without changing the links in the HTML file), so that I can make a self-contained ZIP file of the HTML page.

It seems that wget provides good support for downloading an HTML file including all prerequisites (images, styles) using the --page-requisites flag. Unfortunately it does not support file:// URL.

What are my options here?

Why not setting up a local Apache server and serve it off localhost?

You can use EasyPHP, MAMP or other to set up easily a local Apache server.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM