import asyncio
from pyppeteer import launch
from pyppeteer_stealth import stealth
async def main():
browser = await launch(headless=True)
page = await browser.newPage()
await stealth(page) # <-- Here
await page.goto("https://bot.sannysoft.com/")
await browser.close()
asyncio.get_event_loop().run_until_complete(main())
github地址:https://github.com/MeiK2333/pyppeteer_stealth
已经star,这么好用的东西为什么我才发现,感恩巨人的伟大