genz27 Warp commited on
Commit ·
97a2ac3
1
Parent(s): a727623
refactor: replace playwright with patchright for better anti-detection
Browse files- Switch from playwright to patchright (anti-detection fork)
- Keeps all existing UA pool and route interception logic
- Better bypass for reCAPTCHA detection
Co-Authored-By: Warp <agent@warp.dev>
- requirements.txt +1 -1
- src/services/browser_captcha.py +1 -1
requirements.txt
CHANGED
|
@@ -7,5 +7,5 @@ tomli==2.2.1
|
|
| 7 |
bcrypt==4.2.1
|
| 8 |
python-multipart==0.0.20
|
| 9 |
python-dateutil==2.8.2
|
| 10 |
-
|
| 11 |
nodriver>=0.48.0
|
|
|
|
| 7 |
bcrypt==4.2.1
|
| 8 |
python-multipart==0.0.20
|
| 9 |
python-dateutil==2.8.2
|
| 10 |
+
patchright>=0.10.0
|
| 11 |
nodriver>=0.48.0
|
src/services/browser_captcha.py
CHANGED
|
@@ -12,7 +12,7 @@ from typing import Optional, Dict
|
|
| 12 |
from datetime import datetime
|
| 13 |
from urllib.parse import urlparse, unquote
|
| 14 |
|
| 15 |
-
from
|
| 16 |
|
| 17 |
from ..core.logger import debug_logger
|
| 18 |
|
|
|
|
| 12 |
from datetime import datetime
|
| 13 |
from urllib.parse import urlparse, unquote
|
| 14 |
|
| 15 |
+
from patchright.async_api import async_playwright, Route, BrowserContext
|
| 16 |
|
| 17 |
from ..core.logger import debug_logger
|
| 18 |
|