The documentation for pyWebKitGTK is pretty scarce. I've looked through their python .def
files but they don't seem to contain the words cookie, session, (lib)soup or (lib)curl开发者_如何学JAVA.. so maybe it isn't possible, huh. I've also looked through the WebKitGTK docs (for the C-based library) and aside from a brief mention of libsoup there doesn't appear to be anything there either. But on the other hand cookie support seems like pretty fundamental stuff. Could anyone confirm / deny PyWebKitGTK's support of cookies?
Note: am currently using the GTK version, but I don't mind switching to the Qt one if the feature is there.
I can confirm that WebKitGTK supports cookies, and that you can use them with pywebkitgtk and ctypes successfully- though I'm not sure if that was the case when this question was posted!
To make cookies persist in a useful way, see my answer to this question.
webkit is a html renderer, not a complete browser. I guess you must deal with persisting the cookies yourself.
精彩评论