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

1 Answer 1

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

Sign up to request clarification or add additional context in comments.

5 Comments

Still got the same result when trying to deposit...
@Joe What do you mean by deposit? In your code trials I only see you driver.get() and then return driver
Basically if you set up an account and then try to deposit you get a error message (when using the server), but when I don't use the server I don't get this error message. I assume the website is picking up the fact I am on a server.
@Joe How can we repro the issue? Do you have a set of demo creds?
I have just set up a chat with you on the selenium chat room...

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.