Website recognising I am using a server whilst using selenium

443 Views Asked by At

I am trying to set up an automated sports betting bot using selenium and running it on selenium. When running the bot on the server the website recognises this and therefore doesn't allow me to deposit, but when running it off the server I don't run it into this problem.

I have tried using proxies and VPN's and this still doesn't fix the problem.

The website is 1xbit.com and this picture shows the error message when trying to deposit.enter image description here

Code:

def get_website():
    options = webdriver.ChromeOptions()
    options.add_experimental_option('excludeSwitches', ['enable-logging'])
    driver = webdriver.Chrome(options=options,executable_path=pathway)
    driver.maximize_window()
    actionChains = ActionChains(driver)
    driver.get('https://1xbit.com/live/Football/')
    return driver

Essentially, I want to add code to hide the fact I am on a server....

1

There are 1 best solutions below

5
undetected Selenium On

To avoid detection add the following argument through add_argument() as follows:

Sample Code:

options = Options()
options.add_argument("start-maximized")
options.add_experimental_option("excludeSwitches", ["enable-automation"])
options.add_experimental_option('excludeSwitches', ['enable-logging'])
options.add_experimental_option('useAutomationExtension', False)
options.add_argument('--disable-blink-features=AutomationControlled')
s = Service('C:\\BrowserDrivers\\chromedriver.exe')
driver = webdriver.Chrome(service=s, options=options)
driver.get('https://1xbit.com/live/Football/')

Browser Screenshot:

live_Football