如何获取与python请求页面源相匹配的selenium页面的html源,即在下面的代码中如何从selenium中获取内容以匹配请求中的r?
硒
driver = webdriver.Chrome(executable_path="/usr/local/bin/chromedriver", chrome_options=options)
with contextlib.closing(driver) as browser:
browser.get(link)
content=browser.page_source
Python请求
r = request.urlopen(link).read().decode('utf-8')