[PyQt] QWebEngineUrlRequestInterceptor doesn't work

redstone-cold redstone-cold at 163.com
Sat Jul 2 02:46:16 BST 2016


someone says  It may be caused by python garbage collection
http://stackoverflow.com/questions/37658772/pyqt5-6-interceptrequest-doesnt-work


P.S. I tried the solution , it worked . but I cannot figure out why, can you explain it ?






在2016年07月02 05时03分, "Florian Bruhin"<me at the-compiler.org>写道:

* redstone-cold <redstone-cold at 163.com> [2016-06-30 13:16:48 +0800]:
> In my project, there is some need to get a certain requested URL in Chrome Dev Tools by Python during loading a web page,
>
> I think get the URL by Qt WebEngine is a good solution. I started by trying to use the code below to print out all the requested URLs during loading a web page,
>
> my code here https://bpaste.net/show/f2b1b67bdf96
>
> but it didn't work - no URL get printed at all , so what's wrong here ? Any good solutions ?

I finally got around to updating to Qt 5.7 and trying this, and it
doesn't work here either.

I really can't see why, it seems to me like it should work... did you
find out anything in the meantime?

Florian

--
http://www.the-compiler.org | me at the-compiler.org (Mail/XMPP)
  GPG: 916E B0C8 FD55 A072 | http://the-compiler.org/pubkey.asc
        I love long mails! | http://email.is-not-s.ms/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20160702/d7b008bd/attachment.html>


More information about the PyQt mailing list