Files
weidian/utils/stealth.py

10 lines
250 B
Python
Raw Permalink Normal View History

2026-02-02 09:27:49 +08:00
from playwright_stealth import Stealth
async def stealth_async(page):
"""
Apply stealth settings to the page.
Wrapper around Stealth().apply_stealth_async(page)
"""
stealth = Stealth()
await stealth.apply_stealth_async(page)