pythonlw
pythonlw
问题已解决,不应该加driver
frame_data = await page.send(cdp.page.get_frame_tree()) current_url = frame_data.frame.url current_url2 = await tab.evaluate("window.location.href") print('current_url:', current_url) print('current_url2:', current_url2) cookies1 = await page.send(cdp.network.get_cookies([current_url ])) print('cookies1', cookies1) cookies2 = [{i.name: i.value for i in cookies1}]...
cookies = await tab.send(cdp.network.get_all_cookies()) print(cookies)
> I couldn't solve this with the default nodriver setup, I had to modify the underlying config.py in core.config: Adding the host & port params and inheriting it from the...