I need to save web page using Qt WebKit similar to "Save as complete webpage".
Following are my requirements,
- Save the index html file, mainta开发者_开发问答ining entity encoding.
- Need to download all linked images and other resources.
- Need to change resource path in html page to local downloaded path.
- Need to maintain webpage current state.
I can use Qt and JavaScript to do this.
Please provide me some inputs on this.
Thanks
You could use a HTML parser to parse the current page, then look for all the images (xpath "//img"), download their files, and change their src attributes.
how about save the html to local system and call setHtml() when you need it?
精彩评论