Skip to content

Instantly share code, notes, and snippets.

View yale8848's full-sized avatar
🐯
Tiger Year

Yale yale8848

🐯
Tiger Year
View GitHub Profile
@yale8848
yale8848 / playwright_persistent_concurrency.py
Created May 20, 2023 12:01 — forked from mezhgano/playwright_persistent_concurrency.py
Playwright persistent context concurrency
import asyncio
import random
from pathlib import Path
from playwright.async_api import BrowserContext, async_playwright
CWD = Path().resolve()
# Example path
user_data_dir = Path.joinpath(CWD, 'playwright/data_dir/chromium')