[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    [PyQt] QWebEngineUrlRequestInterceptor doesn't work
From:       redstone-cold <redstone-cold () 163 ! com>
Date:       2016-06-30 5:16:48
Message-ID: 28f7a0f9.178.1559fbcf3ab.Coremail.redstone-cold () 163 ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]

[Attachment #4 (text/plain)]

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 ?


[Attachment #5 (text/html)]

<div style="color:#000; font-size: 14px;font-family: arial;"><div><span style="color: rgb(36, \
39, 41); font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif; font-size: 15px; \
line-height: 19.5px; background-color: rgb(255, 255, 255);">In my project, there is some need \
to get a certain requested URL in Chrome Dev Tools by Python during loading a web \
page,</span><a href="http://i.stack.imgur.com/shSOu.png" rel="nofollow" style="font-family: \
Arial, 'Helvetica Neue', Helvetica, sans-serif; font-size: 15px; line-height: 19.5px; margin: \
0px; padding: 0px; border: 0px; color: rgb(0, 89, 153); text-decoration: none; cursor: \
pointer;"><img src="http://i.stack.imgur.com/shSOu.png" alt="enter image description here" \
style="margin: 0px; padding: 0px; border: 0px; max-width: 100%;"></a></div><p style="margin: \
0px 0px 1em; padding: 0px; border: 0px; font-size: 15px; clear: both; color: rgb(36, 39, 41); \
font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif; line-height: 19.5px; \
background-color: rgb(255, 255, 255);">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,&nbsp;</p><p style="margin: 0px 0px 1em; padding: 0px; border: 0px; font-size: 15px; \
clear: both; color: rgb(36, 39, 41); font-family: Arial, 'Helvetica Neue', Helvetica, \
sans-serif; line-height: 19.5px; background-color: rgb(255, 255, 255);">my code \
here&nbsp;https://bpaste.net/show/f2b1b67bdf96</p><p style="margin: 0px 0px 1em; padding: 0px; \
border: 0px; font-size: 15px; clear: both; color: rgb(36, 39, 41); font-family: Arial, \
'Helvetica Neue', Helvetica, sans-serif; line-height: 19.5px; background-color: rgb(255, 255, \
255);">but it didn't work - no URL get printed at all , so what's wrong here ? Any good \
solutions ?</p><p style="margin: 0px 0px 1em; padding: 0px; border: 0px; font-size: 15px; \
clear: both; color: rgb(36, 39, 41); font-family: Arial, 'Helvetica Neue', Helvetica, \
sans-serif; line-height: 19.5px; background-color: rgb(255, 255, \
255);"><br></p><div><br></div><div><br></div><div><br></div></div><!-- jy5ContentSuffix \
--><br><br><span title="neteasefooter"><p>&nbsp;</p></span>


[Attachment #6 (text/plain)]

_______________________________________________
PyQt mailing list    PyQt@riverbankcomputing.com
https://www.riverbankcomputing.com/mailman/listinfo/pyqt

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic