Skip to content

mdmintz/undetected-testing

Repository files navigation

undetected-testing

Learn how SeleniumBase can evade detection by sites with anti-bot services.

First:

> pip install -U seleniumbase

Now you can try running a test (test_verify_undetected.py) to see if SeleniumBase can fool https://nowsecure.nl/#relax, which won't let you through (normally) if an automation framework is detected:

> pytest test_verify_undetected.py --uc -s -q

 Success! Website did not detect Selenium!
.
-------- Latest Logs dir: /HOME/undetected-testing/latest_logs/ ---------
1 passed in 6.70s

Here's a different script for that same site, (verify_undetected.py), which uses one of the other SeleniumBase Syntax Formats:

> python verify_undetected.py

 Success! Website did not detect Selenium!

Screenshot saved to: now_secure_image.png

SeleniumBase Undetected Mode has been successful in bypassing detection on several sites that use automation-detection services:

Undetected SeleniumBase

In general, opening a URL to one of these sites in SeleniumBase Undetected Mode will bypass detection. However, once you start using other actions such as clicking or typing text, then they might be able to catch you IF they continue to scan your browser AFTER the initial page load. If you're only interested in opening a URL and scraping data from it, (without clicking any buttons, etc), then those sites probably won't be able to detect you.

About

Find out if SeleniumBase can get past sites that use bot-detection services to block Selenium.

Topics

Resources

License

Stars

Watchers

Forks

Languages