Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a webkit2 module for python?

Tags:

python

webkit

I'm using python-webkit right now, but it's missing WebKitAuthenticationRequest, which I need. Is there a python webkit2 module, or maybe is there a way to do authentication in the old webkit?

like image 732
David Mulder Avatar asked Feb 20 '14 23:02

David Mulder


Video Answer


1 Answers

You can get WebKit2 from the gi.repository module (also known as PyGObject).

Make sure you have the following packages:

  • python-gobject
  • gir1.2-webkit2-3.0

You should then be able to use WebKit2 -

from gi.repository import WebKit2

(Note that this module is for GTK+ 3).

like image 68
Sam Avatar answered Sep 22 '22 20:09

Sam