google-code-export / pywebkitgtk

Automatically exported from code.google.com/p/pywebkitgtk
Other
1 stars 0 forks source link

Access DOM from pywebkitgtk #29

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hello pywebkitgtk world,
I am trying to get started with the Python binding for the WebKit GTK+ port
but I am having some difficulties with accessing the DOM model from
pywebkitgtk.
I would really appreciate any help.

I have installed pywebkitgtk-1.1.4 and WebKit-r42583 (got a nightly build from
http://nightly.webkit.org/) on my Fedora 10 Linux machine.

I can run the demo tabbed_browser.py without any issues.
So, I suppose the installation was successful.
But how can I access DOM?

I have visited the following URLs (among many others..)
https://bugs.webkit.org/show_bug.cgi?id=16401 (1)
http://code.google.com/p/pywebkitgtk/issues/detail?id=13 (2)  and
http://mail.gnome.org/archives/gtk-devel-list/2008-December/msg00122.html (3)

but it is not clear to me what I should do in order to access the DOM tree of
a page rendered inside the embedded browser window.

Should I apply any patches since I have the latest versions of pywebkitgtk
and WebKit (as of March 2009)?
If yes, could please somebody provide any instructions about how to do
that? How can somebody
apply the attached "f" (or "psd"?) patch file provided in (2) [Issue 13:
add bindings to DOM model]?

I came across the Pyjamas and Pyjamas-Desktop projects but I haven't
figured out whether
it is necessary to install one of them so as to "get_gdom_document" of the
main frame (WebFrame object)..

Doesn't the latest WebKit release provide the "webkit-glib-gtk" package
(mentioned in (3))
that provides gobject bindings to webkit's DOM model??

Apparently, I am quite confused..

I hope I am not tiring or annoying you with my questions..

Thank you very much in advance for your time and help..
Kind regards

Original issue reported on code.google.com by kntonas@gmail.com on 20 Apr 2009 at 7:45

GoogleCodeExporter commented 9 years ago
AFAIK WebKitGtk doesn't include a DOM bindings as of today. It's still a WIP in 
the
bug (1) you mentioned above. 

What are you trying to do by the way?

Original comment by jmalo...@gmail.com on 25 Apr 2009 at 10:50

GoogleCodeExporter commented 9 years ago
Hello,
thank you very much for your reply.

I have been working on a DOM-based web data extraction tool (DEiXTo).
(http://deixto.csd.auth.gr/ for further information).

I have already built a GUI application with Turbo Delphi Explorer 2006
(in partial fulfillment of the requirements for my MSC). The application
contains an embedded web browser widget using the TWebBrowser component,
which utilizes Internet Explorer's rendering engine and HTML parser and
provides DOM support.

I have also written a portable command line utility in Perl capable of
executing wrappers generated with the GUI tool.

I am examining alternative technologies and toolkits for rewriting DEiXTo,
and WebKit as well as pywebkitgtk appeal to me, having in mind - among other
things - efficiency and portability. However, DOM support is a "must"..

Is there any estimate about when a DOM binding is going to be included in the
WebKit release? Could you please provide any instructions about how to apply
the DOM patches published at https://bugs.webkit.org/show_bug.cgi?id=16401
and http://code.google.com/p/pywebkitgtk/issues/detail?id=13?

Thanks again for your time and interest.
Regards

Original comment by kntonas@gmail.com on 26 Apr 2009 at 6:42

GoogleCodeExporter commented 9 years ago
I don't have any estimates as of this moment. And AFAIk, that patch needs to be
reworked. We'll keep everyone posted once it's ready.

Original comment by jmalo...@gmail.com on 28 May 2009 at 9:25