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
Copy file name to clipboardExpand all lines: README.md
+24-11Lines changed: 24 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,24 +1,31 @@
1
1
# playwright_stealth
2
2
3
-
Fork of AtuboDad's port of [puppeteer-extra-plugin-stealth](https://github.com/berstend/puppeteer-extra/tree/master/packages/puppeteer-extra-plugin-stealth), with some improvements. Don't expect this to bypass anything but the simplest of bot detection methods. Consider this a proof-of-concept starting point.
3
+
Fork of AtuboDad's port
4
+
of [puppeteer-extra-plugin-stealth](https://github.com/berstend/puppeteer-extra/tree/master/packages/puppeteer-extra-plugin-stealth),
5
+
with some improvements. Don't expect this to bypass anything but the simplest of bot detection methods. Consider this a
6
+
proof-of-concept starting point.
4
7
5
-
I've merged some of the outstanding PRs, added some features, and cleaned up the API surface. See the [changelog](./CHANGELOG.md). The latest major version includes breaking changes.
8
+
I've merged some of the outstanding PRs, added some features, and cleaned up the API surface. See
9
+
the [changelog](./CHANGELOG.md). The latest major version includes breaking changes.
6
10
7
11
## Install
8
12
9
13
Install from PyPi:
14
+
10
15
```
11
16
$ pip install playwright-stealth
12
17
```
13
18
14
19
## Example Usage
15
20
16
21
### Recommended Usage
22
+
17
23
```python
18
24
import asyncio
19
25
from playwright.async_api import async_playwright
20
26
from playwright_stealth import Stealth
21
27
28
+
22
29
asyncdefmain():
23
30
# This is the recommended usage. All pages created will have stealth applied:
24
31
asyncwith Stealth().use_async(async_playwright()) as p:
- make this work with playwright.launch_persistent_context
80
-
- the difficult because sometimes we sniff the UA if an override isn't provided, and this is difficult to do when launch_persistent_context is launched
81
-
- sec-platform (we have navigator_platform)
82
-
- docs
90
+
91
+
- make this work with playwright.launch_persistent_context
92
+
- the difficult because sometimes we sniff the UA if an override isn't provided, and this is difficult to do when
0 commit comments