So we made a discord bot that uses selenium and decided to host it on heroku but when we tried to access the the website a cloudflare captcha tests comes up and we are unable to get past it .
We then found out about undetectable chromedriver but it is still unable to bypass the cloudflare test.
The website we are trying to access is https://aternos.org/:en/
Is what we are trying to achieve just not possible ? If so are there any other website we could try to host this bot.
The code is attached bellow:
from selenium.webdriver.common.keys import Keys
import time
import os
import undetected_chromedriver.v2 as uc
options = uc.ChromeOptions()
options.add_experimental_option("excludeSwitches", ["enable-automation"])
options.add_experimental_option('useAutomationExtension', False)
options.add_argument("headless")
options.add_argument("--disable-blink-features=AutomationControlled")
driver = uc.Chrome(options=options)
driver.get("https://aternos.org/go")
USERNAME_C = os.environ.get("USERNAME_C")
PASSWORD_C = os.environ.get("PASSWORD_C")
BOT_TOKEN = os.environ.get("BOT_TOKEN")
time.sleep(15)
Any help is appreciated!