Closed songyingxin closed 6 years ago
code:
9 # register callback if you want 10 def request_will_be_sent(**kwargs): 11 with open("url.txt", 'a') as f: 12 ¦ f.write(kwargs.get('request').get('url') + '\n') 13 14 tab.Network.requestWillBeSent = request_will_be_sent 15 16 def response_received(**kwargs): 17 with open('1.txt', 'a') as f: 18 ¦ f.write(json.dumps(kwargs)) 19 20 tab.Network.responseReceived = response_received
and the Network.responseReceived can't work, the output is:
Network.responseReceived
No handlers could be found for logger "pychrome.tab"
hope for your answer
code:
and the
Network.responseReceived
can't work, the output is:hope for your answer