selenium.webdriver获取结果转为json格式

from selenium import webdriver

driver.get(requestUrl)
html = driver.page_source
soup = BeautifulSoup(html, 'lxml')
cc = soup.select('pre')[0]
res = json.loads(cc.text)
posted @ 2019-11-01 17:14  凯文队长  阅读(3482)  评论(0编辑  收藏  举报