Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Webdriver (new) fail #9

Open
chimerasciences opened this issue Jan 22, 2021 · 4 comments
Open

Webdriver (new) fail #9

chimerasciences opened this issue Jan 22, 2021 · 4 comments

Comments

@chimerasciences
Copy link

Hey, thank you so much for your awesome plugin. Unfortunately the new webdriver started failing for me. Do you have any fixes you aim to implement?

@kkatayama
Copy link

Try adding
options.add_argument("--disable-blink-features=AutomationControlled")

from selenium import webdriver
from selenium_stealth import stealth
import time

options = webdriver.ChromeOptions()
options.add_argument("start-maximized")

# options.add_argument("--headless")

#options.add_argument("--disable-blink-features")
options.add_argument("--disable-blink-features=AutomationControlled")

options.add_experimental_option("excludeSwitches", ["enable-automation"])
options.add_experimental_option('useAutomationExtension', False)
driver = webdriver.Chrome(options=options)

stealth(driver,
        languages=["en-US", "en"],
        vendor="Google Inc.",
        platform="Win32",
        webgl_vendor="Intel Inc.",
        renderer="Intel Iris OpenGL Engine",
        fix_hairline=True,
        )
url = "https://bot.sannysoft.com/"

driver.get(url)

image

@chimerasciences
Copy link
Author

you are awesome <3

@joel
Copy link

joel commented Jan 29, 2021

It still detect me.

python --version
Python 3.9.1

pip==21.0

selenium==3.141.0
selenium-stealth==1.0.6

chromedriver/88.0.4324.96/chromedriver

Screen Shot 2021-01-29 at 11 13 53 AM

@kaliiiiiiiiii
Copy link

You could try using https://github.com/kaliiiiiiiiii/Selenium-Profiles or undetected-chromedriver

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants