undetected-chromedriver
undetected-chromedriver copied to clipboard
Cloudflare detecting UC immediately
Only recently have I been unbale to load the following website
import undetected_chromedriver.v2 as uc
CH_option = uc.ChromeOptions()
#CH_option.add_argument("disable-popup-blocking")
CH_option.add_argument("--window-size=1920,1080")
CH_option.add_argument('--no-sandbox')
CH_option.add_argument('--disable-gpu')
CH_option.add_argument('--disable-dev-shm-usage')
# instantiate the driver
driver = uc.Chrome(options=CH_option)
url = 'https://www.oddschecker.com/horse-racing/'
driver.get(url)
Except it works like a charm for me... Your IP (or profile) has very probably been flagged. Please be aware that undetected-chromedriver won't prevent sites detecting your script behaving like a bot.
interesting, thanks @sebdelsol
I've tried on two machines along with some VPNs and still the same issue.
Here open normally.. I just do:
import undetected_chromedriver as uc
def conectar():
url = 'https://www.oddschecker.com/horse-racing'
driver = uc.Chrome()
driver.get(url)
And worked...
It worked with v2 too:
Only recently have I been unbale to load the following website
import undetected_chromedriver.v2 as uc CH_option = uc.ChromeOptions() #CH_option.add_argument("disable-popup-blocking") CH_option.add_argument("--window-size=1920,1080") CH_option.add_argument('--no-sandbox') CH_option.add_argument('--disable-gpu') CH_option.add_argument('--disable-dev-shm-usage') # instantiate the driver driver = uc.Chrome(options=CH_option) url = 'https://www.oddschecker.com/horse-racing/' driver.get(url)
As i know it is just fixed geo ip block from cloudflare. With normal browser and same ip you will be also blocked. Try it. I use proxy as workaround.