Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mdmintz/undetected-testing
Find out if SeleniumBase can get past sites that use bot-detection services to block Selenium.
https://github.com/mdmintz/undetected-testing
cloudflare-bypass seleniumbase
Last synced: 18 days ago
JSON representation
Find out if SeleniumBase can get past sites that use bot-detection services to block Selenium.
- Host: GitHub
- URL: https://github.com/mdmintz/undetected-testing
- Owner: mdmintz
- License: mit
- Created: 2023-01-17T19:17:16.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2024-09-19T12:54:47.000Z (about 2 months ago)
- Last Synced: 2024-10-14T09:47:10.418Z (about 1 month ago)
- Topics: cloudflare-bypass, seleniumbase
- Language: Python
- Homepage:
- Size: 84 KB
- Stars: 16
- Watchers: 5
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# undetected-testing
Learn how [SeleniumBase](https://github.com/seleniumbase/SeleniumBase) can evade detection by sites with anti-bot services.
First:
```bash
> pip install -U seleniumbase
```Now you can try running a test ([test_verify_undetected.py](https://github.com/mdmintz/undetected-testing/blob/master/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:
```bash
> pytest test_verify_undetected.py --uc -s -qSuccess! 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](https://github.com/mdmintz/undetected-testing/blob/master/verify_undetected.py)), which uses one of the other [SeleniumBase Syntax Formats](https://github.com/seleniumbase/SeleniumBase/blob/master/help_docs/syntax_formats.md):
```bash
> python verify_undetected.pySuccess! 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:
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.