I have the following issue when I'm trying to get the HTML from a website by sending a request like this:
response = requests.get("https://www.themacallan.com/de/double-cask-15-years-old").text
I don't get the page I want, I get another (cloudflare) page that says 1020 access denied. I tried using a user agent in the header
headers = {
'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:104.0) Gecko/20100101 Firefox/104.0'}
response = requests.get("https://www.themacallan.com/de/double-cask-15-years-old", headers=headers).text
And I tried using cloudscraper but nothing worked.
scraper = cloudscraper.create_scraper(browser={'browser': 'firefox','platform': 'windows','mobile': False})
Thanks in advance