Hugging Face
Models
Datasets
Spaces
Community
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
Duplicated from
09u2h4n/Plwrftapi
AZILS
/
Plwrftapi
like
0
Sleeping
App
Files
Files
Community
Fetching metadata from the HF Docker repository...
e0c5f64
Plwrftapi
/
take_ss.py
09u2h4n
testing
e0c5f64
12 months ago
raw
Copy download link
history
blame
Safe
269 Bytes
from
playwright.sync_api
import
sync_playwright
def
take_screenshot
(
url, path
):
with
sync_playwright()
as
p:
browser = p.firefox.launch()
page = browser.new_page()
page.goto(url)
page.screenshot(path=path)
browser.close()