用审查元素可以看到请求,但是用网页监听的方式,监听不到。监听到的结果是,而不是搜索结果的源代码,请大神看一下
[{'type': 'XHR', 'url': 'https://ads.google.com/aw_diagnostic/_/rpc/PreviewService/GetPreview?authuser=0&rpcTrackingId=PreviewService.GetPreview%3A19&f.sid=-2369950377744300500', 'status': 200, 'headers': {'acx-server-start-time': '1684755390735', 'acx-server-time': '776', 'alt-svc': 'h3=":443"; ma=2592000,h3-29=":443"; ma=2592000', 'cache-control': 'no-cache, no-store, max-age=0, must-revalidate', 'content-disposition': 'attachment; filename="response.bin"; filename*=UTF-8\'\'response.bin', 'content-encoding': 'gzip', 'content-type': 'application/json; charset=utf-8', 'cross-origin-opener-policy': 'same-origin; report-to="AYjjsg7EdWtSSBd2isM_7sG7W6d8Y6Tei5F7Y5nXceIm2cpxiE9JEFcJ62hHHOWm"', 'cross-origin-resource-policy': 'same-site', 'date': 'Mon, 22 May 2023 11:36:31 GMT', 'expires': 'Mon, 01 Jan 1990 00:00:00 GMT', 'pragma': 'no-cache', 'report-to': '{"group":"AYjjsg7EdWtSSBd2isM_7sG7W6d8Y6Tei5F7Y5nXceIm2cpxiE9JEFcJ62hHHOWm","max_age":2592000,"endpoints":[{"url":"https://csp.withgoogle.com/csp/report-to/encsid_AYjjsg7EdWtSSBd2isM_7sG7W6d8Y6Tei5F7Y5nXceIm2cpxiE9JEFcJ62hHHOWm"}]}', 'server': 'ESF', 'server-timing': 'server-processing;dur=776', 'vary': 'Sec-Fetch-Dest, Sec-Fetch-Mode, Sec-Fetch-Site', 'x-content-type-options': 'nosniff', 'x-frame-options': 'SAMEORIGIN', 'x-trace-id': '-8859849729048510251', 'x-xss-protection': '0'}, 'body': '{"1":"https://www.google.com/search?q\\u003dloans\\u0026ip\\u003d0.0.0.0\\u0026source_ip\\u003d0.0.0.0\\u0026ie\\u003dUTF-8\\u0026oe\\u003dUTF-8\\u0026hl\\u003den\\u0026adtest\\u003don\\u0026noj\\u003d1\\u0026igu\\u003d1\\u0026adsdiag\\u003d2543309182619090944\\u0026uule\\u003dw+CAIQIFISCQs2MuSEtepUEUK33kOSuTsc\\u0026nomo\\u003d1\\u0026nota\\u003d1\\u0026biw\\u003d1075\\u0026bih\\u003d5000","2":"2543309182619090944","6":"yfF2UH7ZQiyQqxE7XmBQjg\\u003d\\u003d","7":{"4":"https://www.google.com//search?q\\u003dloans\\u0026ip\\u003d0.0.0.0\\u0026source_ip\\u003d0.0.0.0\\u0026ie\\u003dUTF-8\\u0026oe\\u003dUTF-8\\u0026hl\\u003den\\u0026adtest\\u003don\\u0026noj\\u003d1\\u0026igu\\u003d1\\u0026adsdiag\\u003d2543309182619090944\\u0026uule\\u003dw+CAIQIFISCQs2MuSEtepUEUK33kOSuTsc\\u0026nomo\\u003d1\\u0026nota\\u003d1\\u0026biw\\u003d1075\\u0026bih\\u003d5000"}}', 'base64Encoded': False}, {'type': 'XHR', 'url': 'https://ads.google.com/aw_diagnostic/_/logging?authuser=0', 'status': 200, 'headers': {'acx-server-start-time': '1684755391660', 'acx-server-time': '17', 'alt-svc': 'h3=":443"; ma=2592000,h3-29=":443"; ma=2592000', 'cache-control': 'no-cache, no-store, max-age=0, must-revalidate', 'content-encoding': 'gzip', 'content-type': 'text/plain; charset=utf-8', 'cross-origin-opener-policy': 'same-origin; report-to="AYjjsg7EdWtSSBd2isM_7sG7W6d8Y6Tei5F7Y5nXceIm2cpxiE9JEFcJ62hHHOWm"', 'date': 'Mon, 22 May 2023 11:36:31 GMT', 'expires': 'Mon, 01 Jan 1990 00:00:00 GMT', 'pragma': 'no-cache', 'report-to': '{"group":"AYjjsg7EdWtSSBd2isM_7sG7W6d8Y6Tei5F7Y5nXceIm2cpxiE9JEFcJ62hHHOWm","max_age":2592000,"endpoints":[{"url":"https://csp.withgoogle.com/csp/report-to/encsid_AYjjsg7EdWtSSBd2isM_7sG7W6d8Y6Tei5F7Y5nXceIm2cpxiE9JEFcJ62hHHOWm"}]}', 'server': 'ESF', 'server-timing': 'server-processing;dur=17', 'vary': 'Sec-Fetch-Dest, Sec-Fetch-Mode, Sec-Fetch-Site', 'x-content-type-options': 'nosniff', 'x-frame-options': 'SAMEORIGIN', 'x-trace-id': '3038113356752870849', 'x-xss-protection': '0'}, 'body': 'ok', 'base64Encoded': False}]
