https://www.cnblogs.com/hhaostudy/p/16121859.html
pip install selenium-wire
import time
from seleniumwire import webdriver
# Create a new instance of the Chrome driver
driver = webdriver.Chrome()
# Go to the YouTube homepage.
driver.get('http://tool.liumingye.cn/music/?page=audioPage&type=migu&name=%E6%8A%96%E9%9F%B3')
time.sleep(5)
# Access requests via the `requests` attribute
for request in driver.requests:
if request.response:
if request.path == "/m/api/search":
print(request.response.body.decode("utf-8"))
driver.quit()
标签:seleniumwire,--,driver,request,Chrome,import,貌似,requests From: https://www.cnblogs.com/kaibindirver/p/16731993.html