elm.web.html_pw.load_html_with_pw
- async load_html_with_pw(url, browser_semaphore=None, timeout=90000, **pw_launch_kwargs)[source]
Extract HTML from URL using Playwright.
- Parameters:
url (str) – URL to pull HTML for.
browser_semaphore (asyncio.Semaphore, optional) – Semaphore instance that can be used to limit the number of playwright browsers open concurrently. If
None
, no limits are applied. By default,None
.timeout (int, optional) – Maximum time to wait for page loading state time in milliseconds. Pass 0 to disable timeout. By default,
90,000
.**pw_launch_kwargs – Keyword-value argument pairs to pass to
async_playwright.chromium.launch()
.
- Returns:
str – HTML from page.