I'm using python with undetected_chromedriver to try and crawl https://www.carrefour.fr/ but are being blocked by the Cloudlflare challenge.
The code below works fine when I run it locally on my mac but when tested in an Ubuntu container on AWS, it returns the CF captcha page.
Any ideas?
import undetected_chromedriver as uc
from fake_useragent import UserAgent
ua = UserAgent()
options = uc.ChromeOptions()
options.add_argument("--start-maximized")
options.add_argument("--no-sandbox")
options.add_argument('User-Agent={0}'.format(ua.chrome))
proxy = {'proxy': {'http': 'REMOVED', 'https': 'REMOVED'}}
url = "https://www.carrefour.fr/set-store/79?redirect=/r/jardin-amenagement-dexterieur/mobilier-jardin/chaises"
driver = uc.Chrome(version_main=113, options=options, headless=True, seleniumwire_options=proxy)
driver.get(url)
print(driver.page_source)