How do I save a web page, programmatically?

前端 未结 3 1034
予麋鹿
予麋鹿 2021-01-05 08:48

I would like to save a web page programmatically.

I don\'t mean merely save the HTML. I would also like automatically to store all associated files (images, CSS file

3条回答
  •  不知归路
    2021-01-05 09:04

    You could try the MHTML format (which is what IE uses). http://en.wikipedia.org/wiki/MHTML

    In other words, you'd be downloading each object (image, css, etc.) to your computer, and then "embedding" them, via Base64, into a single file.

提交回复
热议问题