I created a bot in Python using Selenium, uploaded Ununtu to a remote server, and when I go to the driver.get('correct_url') => site, an access denied error occurs. On windows everything works fine (code is working).
chrome_options = Options()
chrome_options.add_argument('--headless')
chrome_options.add_argument('--no-sandbox')
chrome_options.add_argument('--disable-dev-shm-usage')
chrome_options.add_argument('--disable-blink-features=AutomationControlled')
chrome_options.add_argument('--enable-experimental-cookie-features')
driver = webdriver.Chrome(service=Service(browser_driver_path), chrome_options=chrome_options)
driver.get(website_link)
Already tried: to use undetected_chromedriver. I also performed basic actions from the Internet, turned on cookies, cleared the cache, etc.
Libraries:
- selenium
- pyvirtualdisplay
- webdriver Options