I am trying to scrape https://marketchameleon.com/Calendar/Earnings but the website is blocking selenium. It initially loads into the website, but the earnings calendar script does not load. If I try refreshing the page, I get a "Access Denied You don't have permission" error. I have tried changing User Agent and other chrome options, but the same issue persists. Can anyone let me know how to bypass the detection?
import requests
from selenium import webdriver
from selenium.webdriver.chrome.options import Options
from fake_useragent import UserAgent
options = Options()
ua = UserAgent()
userAgent = ua.random
options.add_argument(f'user-agent={userAgent}')
options.add_argument("start-maximized")
options.add_argument("disable-infobars")
options.add_argument("--disable-extensions")
options.add_experimental_option("excludeSwitches", ["enable-automation"])
options.add_experimental_option('useAutomationExtension', False)
driver = webdriver.Chrome(chrome_options=options)
driver.get('https://marketchameleon.com/Calendar/Earnings')