我现在正在使用 python-webkit,但它缺少我需要的 WebKitAuthenticationRequest。有没有 python webkit2 模块,或者有没有办法在旧的 webkit 中进行身份验证?
最佳答案
您可以从 gi.repository
模块(也称为 PyGObject)获取 WebKit2。
确保您拥有以下软件包:
- python-gobject
- gir1.2-webkit2-3.0
然后您应该能够使用 WebKit2 -
from gi.repository import WebKit2
(请注意,此模块适用于 GTK+ 3)。
关于python - 是否有用于 python 的 webkit2 模块?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21922015/