[webkit-gtk] WebkitGtk2 How to save *original* source html/text of a website?
Leo Ufimtsev
Leonidas at redhat.com
Wed May 24 08:40:15 PDT 2017
Thanks guys.
Yea, the resurce_get_data method worked.
Initially I had an issue with "webkit is not a resource", but turns out I
simply passed it the wrong pointer (just a typo).
The resource method does exactly what I needed.
Life is good.
Thanks again!.
On Fri, May 19, 2017 at 9:12 PM, Michael Catanzaro <mcatanzaro at igalia.com>
wrote:
> On Fri, May 19, 2017 at 2:24 PM, Leo Ufimtsev <Leonidas at redhat.com> wrote:
>
>> I haven't tried: webkit_web_resource_get_data() yet. (Does that do it
>> differently or same as view_save()?).
>>
>
> That's exactly what I was going to suggest. I think it should give you the
> raw HTML of the main resource, whereas webkit_web_view_save() converts the
> entire webpage including subresources to HTML so it can be saved in a
> single file. It should also be fairly easy if you use
> webkit_web_view_get_main_resource() to get the main resource.
>
> Michael
>
>
--
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/20170524/60de5da8/attachment.html>
More information about the webkit-gtk
mailing list