My Browser -Startkonfigurationen auf: < /p>
Code: Select all
async with async_playwright() as playwright:
browser_path = find_chromium_path()
executable_path = f"{browser_path}/chrome-linux/chrome"
# Local development
if not os.path.exists(executable_path):
executable_path = None
browser = await playwright.chromium.launch(headless=True,
executable_path=executable_path,
args=[
"--no-sandbox",
"--disable-setuid-sandbox",
"--disable-dev-shm-usage",
"--disable-accelerated-2d-canvas",
"--disable-gpu",
"--single-process",
"--no-zygote",
"--disable-audio-output",
"--disable-software-rasterizer",
"--disable-webgl",
"--disable-web-security",
"--disable-features=LazyFrameLoading",
"--disable-features=IsolateOrigins",
"--disable-background-networking"
]
)