【发布时间】:2023-01-14 14:24:15
【问题描述】:
我正在尝试使用 selenium 解析 cloudflare 网站。我可以在页面上找到单个元素,但我没有找到如何获取页面的整个代码。
options = webdriver.ChromeOptions()
options.add_argument('user-agent=')
options.add_argument('--disable-blink-features=AutomationControlled')
s = Service(executable_path='')
driver = webdriver.Chrome(service=s, options=options)
try:
driver.get('https://mangalib.me/manga-list')
time.sleep(10)
print(driver.find_element_by_xpath(''))
except Exception as ex:
print(ex)
finally:
driver.close()
driver.quit()
【问题讨论】:
标签: python selenium cloudflare