-2

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....

undetected Selenium
  • 183,867
  • 41
  • 278
  • 352
Joe
  • 59
  • 6

1 Answers1

0

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

undetected Selenium
  • 183,867
  • 41
  • 278
  • 352