elm.web.html_pw.load_html_with_pw
- async load_html_with_pw(url, browser_semaphore=None, **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
.**pw_launch_kwargs – Keyword-value argument pairs to pass to
async_playwright.chromium.launch()
.
- Returns:
str – HTML from page.