Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit dfe96f2

Browse files
committed
Update the ReadMe
1 parent 12d34fd commit dfe96f2

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

‎README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,22 @@ with SB(test=True) as sb:
8585

8686
--------
8787

88+
<p align="left">📗 Here's an example of bypassing bot-detection on a site that uses Cloudflare: <a href="https://github.com/seleniumbase/SeleniumBase/blob/master/examples/cdp_mode/raw_gitlab.py">SeleniumBase/examples/cdp_mode/raw_gitlab.py</a></p>
89+
90+
```python
91+
from seleniumbase import SB
92+
93+
with SB(uc=True, test=True, locale_code="en") as sb:
94+
url = "https://gitlab.com/users/sign_in"
95+
sb.activate_cdp_mode(url)
96+
sb.uc_gui_click_captcha() # PyAutoGUI if needed
97+
sb.save_screenshot_to_logs()
98+
```
99+
100+
<img src="https://seleniumbase.github.io/other/cf_sec.jpg" title="SeleniumBase" width="332"> <img src="https://seleniumbase.github.io/other/gitlab_bypass.png" title="SeleniumBase" width="288">
101+
102+
--------
103+
88104
<p align="left">📗 Here's <a href="https://github.com/seleniumbase/SeleniumBase/blob/master/examples/test_get_swag.py">test_get_swag.py</a>, which tests a QA shopping site:</p>
89105

90106
```python

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /