[webkit-gtk] WebkitGtk2 How to save *original* source html/text of a website?
Leo Ufimtsev
Leonidas at redhat.com
Fri May 19 12:24:05 PDT 2017
Hello,
I'm working on Eclipse-SWT's webkit2 port.
On webkit2:
I'm trying to just grab the text/html of a website, such that it is as
close to the original html.
I tried:
webkit_web_view_save (..)
but it produces an MHTML that is different from the original. For example
'<script>' tags are stripped out.
With webkit1 we did it via:
source = webkit_web_frame_get_data_source(webkit_web_view_get_
main_frame(webview);
data = webkit_web_data_source_get_data(source)
But on Webkit2 these functions don't exist anymore.
I haven't tried: webkit_web_resource_get_data() yet. (Does that do it
differently or same as view_save()?).
Any suggestions/snippets/advice?
Thank you
--
Leo Ufimtsev
Software Engineer
Red Hat
<https://www.redhat.com>
90 Eglinton Ave E #502,
Toronto, ON M4P 2Y3
Leonidas at redhat.com
CHAT:
- IRC: http://webchat.freenode.net/?channels=#swt
- MatterMost: https://mattermost.eclipse.org/eclipse/channels/platform-swt
<https://red.ht/sig>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-gtk/attachments/20170519/b99f18b6/attachment.html>
More information about the webkit-gtk
mailing list