以下代码仅提供响应参数。但是我想要响应数据或有效载荷。
from selenium import webdriver
from selenium.webdriver.common import keys
import json
driver = webdriver.Chrome(executable_path=r'D:\Softvan\Code\UberEats\software\chromedriver.exe',desired_capabilities={'loggingPrefs': {'performance': 'INFO'}})
driver.get('https://www.instagram.com/narendramodi/?hl=enhttps://www.instagram.com/narendramodi/?hl=en')
driver.command_executor._commands.update({'getAvailableLogTypes': ('GET', '/session/$sessionId/log/types'),'getLog': ('POST', '/session/$sessionId/log')})