We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Under the root user of Linux, if I set --no-sandbox, stealth fails
import asyncio from pyppeteer import launch from pyppeteer_stealth import stealth async def main(): opt = {'headless': True,'args': ['--no-sandbox']} browser = await launch(opt) page = await browser.newPage() await stealth(page) # <-- Here await page.goto("https://bot.sannysoft.com/") print(await page.content()) await browser.close() asyncio.run(main())
result:
But if I modify the source code of pyppeteer, write --no-sandbox directly in the DEFAULT_ARGS of the source code, it will take effect.
--no-sandbox
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/") print(await page.content()) await browser.close() asyncio.run(main())
The text was updated successfully, but these errors were encountered:
遇到了相同的问题
Sorry, something went wrong.
No branches or pull requests
Under the root user of Linux, if I set --no-sandbox, stealth fails
result:
But if I modify the source code of pyppeteer, write
--no-sandbox
directly in the DEFAULT_ARGS of the source code, it will take effect.The text was updated successfully, but these errors were encountered: