This website requires JavaScript.
Explore
Help
Sign In
xmengnet
/
PyQt
Watch
1
Star
0
Fork
You've already forked PyQt
0
Code
Issues
Pull requests
Projects
Releases
Wiki
Activity
e09d04e792
PyQt
/
浏览器获取Cookie
/
README.md
Irony
e09d04e792
update readme
2017-12-27 00:20:50 +08:00
414 B
Raw
Blame
History
获取QWebView或者QWebEngineView的网页Cookie
QWebView很简单,从page()中得到QNetworkAccessManager,在从中得到QNetworkCookieJar, 最后得到cookie,当然也可以设置自己的QNetworkCookieJar
QWebEngineView的话目前是通过QWebEngineProfile中得到的cookieStore并绑定它的cookieAdded信号来得到Cookie
截图