You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
🎭 <btranslate="no">Stealthy Playwright Mode</b> is a subset of **[SeleniumBase CDP Mode](https://github.com/seleniumbase/SeleniumBase/blob/master/examples/cdp_mode/ReadMe.md)**that launches **[Playwright](https://github.com/microsoft/playwright-python)** from an existing <btranslate="no">SeleniumBase</b> browser to make <spantranslate="no">Playwright</span> stealthy (for bypassing bot-detection). <spantranslate="no">Playwright</span> uses <code><b>connect_over_cdp()</b></code> to attach itself onto an existing <spantranslate="no">SeleniumBase</span> session via the <code>remote-debugging-port</code>. From here, APIs of both frameworks can be used together.
5
+
🎭 <btranslate="no">Stealthy Playwright Mode</b> is a subset of **[SeleniumBase CDP Mode](https://github.com/seleniumbase/SeleniumBase/blob/master/examples/cdp_mode/ReadMe.md)**where <spantranslate="no">**[Playwright](https://github.com/microsoft/playwright-python)**</span> calls <code><b>connect_over_cdp()</b></code> to attach itself onto a stealthy <spantranslate="no">SeleniumBase</span> browser session via the <code>remote-debugging-port</code>. This gives <spantranslate="no">Playwright</span> the ability to bypass bot-detection, and allows APIs of both frameworks to be used together.
6
6
7
7
--------
8
8
@@ -13,19 +13,19 @@
13
13
14
14
### 🎭 Getting started with <btranslate="no">Stealthy Playwright Mode</b>:
15
15
16
-
🎭 If `playwright` isn't already installed, then install it first:
16
+
If **`playwright`** isn't already installed, then install it first:
17
17
18
18
```zsh
19
19
pip install playwright
20
20
```
21
21
22
-
🎭 Stealthy Playwright Mode comes in 3 formats:
22
+
**Stealthy Playwright Mode** comes in 3 formats:
23
23
1.`sb_cdp` sync format
24
24
2.`SB()` nested sync format
25
25
3.`cdp_driver` async format
26
26
27
27
28
-
####🎭 `sb_cdp` sync format (minimal boilerplate):
28
+
### 🎭 `sb_cdp` sync format (minimal boilerplate):
29
29
30
30
```python
31
31
from playwright.sync_api import sync_playwright
@@ -41,7 +41,7 @@ with sync_playwright() as p:
41
41
page.goto("https://example.com")
42
42
```
43
43
44
-
####🎭 `SB()` nested sync format (minimal boilerplate):
44
+
### 🎭 `SB()` nested sync format (minimal boilerplate):
45
45
46
46
```python
47
47
from playwright.sync_api import sync_playwright
@@ -58,7 +58,7 @@ with SB(uc=True) as sb:
58
58
page.goto("https://example.com")
59
59
```
60
60
61
-
####🎭 `cdp_driver` async format (minimal boilerplate):
61
+
### 🎭 `cdp_driver` async format (minimal boilerplate):
0 commit comments