I'm trying to login to a website, but it seems to be blocking me based solely off of me using selenium to login. The code I am using is below, but I am sure that the problem isn't with the code as the login fails even if I open the selenium browser window and login completely manually.
driver = webdriver.Firefox()
driver.get("https://www.etoro.com/login/?")
sleep(5)
driver.find_element_by_id("username").send_keys(username)
driver.find_element_by_id("password").send_keys(password)
driver.find_element_by_xpath('//button[@automation-id="login-sts-btn-sign-in"]').click()
Having looked this up, this seems similar to how google have blocked logging in to gmail if you use a browser that supports automation; but that has some kind of workaround, while I haven't found a similar workaround for this website. Any help much appreciated.
