Python 3.x 是否可以从ChromeDriver';什么是性能日志?
我需要调试表单的工作,表单在提交时通过POST请求发送一些数据。是否可以从ChromeDriver的性能博客获得请求的主体 这些要求肯定是相同的: 从日志中:Python 3.x 是否可以从ChromeDriver';什么是性能日志?,python-3.x,selenium-webdriver,Python 3.x,Selenium Webdriver,我需要调试表单的工作,表单在提交时通过POST请求发送一些数据。是否可以从ChromeDriver的性能博客获得请求的主体 这些要求肯定是相同的: 从日志中: {'cache': {}, 'comment': '', 'pageref': 'ping.eu', 'request': {'bodySize': 23,
{'cache': {},
'comment': '',
'pageref': 'ping.eu',
'request': {'bodySize': 23,
'comment': '',
'cookies': [],
'headers': [],
'headersSize': 842,
'httpVersion': 'HTTP/1.1',
'method': 'POST',
'queryString': [{'name': 'atype',
'value': '4'}],
'url': 'https://ping.eu/action.php?atype=4'},
'response': {'bodySize': 1734,
'comment': '',
'content': {'comment': '',
'mimeType': 'text/html; '
'charset=UTF-8',
'size': 0},
'cookies': [],
'headers': [],
'headersSize': 421,
'httpVersion': 'HTTP/1.1',
'redirectURL': '',
'status': 200,
'statusText': 'OK'},
'serverIPAddress': '88.198.46.60',
'startedDateTime': '2020-09-04T02:56:05.215+04:00',
'time': 280,
'timings': {'blocked': 0,
'comment': '',
'connect': 134,
'dns': 0,
'receive': 75,
'send': 0,
'ssl': 70,
'wait': 70}},
这就是Fiddler捕捉它的方式:
POST https://ping.eu/action.php?atype=4 HTTP/1.1
Referer: https://ping.eu/ns-whois/
Cache-Control: max-age=0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-US,en;q=0.7,ru;q=0.3
Content-Type: application/x-www-form-urlencoded
Upgrade-Insecure-Requests: 1
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.102 Safari/537.36 Edge/18.18363
Accept-Encoding: gzip, deflate, br
Host: ping.eu
Content-Length: 23
Connection: Keep-Alive
Cookie: PHPSESSID=e96924c776c043e352c54f876cf39a7d; LG=en; __gads=ID=1ea574de4b723032-2242a5a6c3b60001:T=1599174533:RT=1599174533:S=ALNI_MbPyHrkd7PS02R9_89pGoKAI_h83Q
host=ya.ru&scode=&go=Go
这就是我需要的:
host=ya.ru&scode=&go=go