undetected-chromedriver

Cloudflare and Chromedriver - cloudflare distinguishes between chromedriver and genuine chrome?

别来无恙 提交于 2021-02-10 04:28:08
问题 I would like to use chromedriver to scrape some stories from fanfiction.net. I try the following: from selenium import webdriver import time path = 'D:\chromedriver\chromedriver.exe' browser = webdriver.Chrome(path) url1 = 'https://www.fanfiction.net/s/8832472' url2 = 'https://www.fanfiction.net/s/5218118' browser.get(url1) time.sleep(5) browser.get(url2) The first link opens (sometimes I have to wait 5 seconds). When I want to load the second url, cloudflare intervens and wants me to solve