import os
from browshot import BrowshotClient

client = BrowshotClient(os.environ["BROWSHOT_API_KEY"])
file = client.screenshot_pdf_file(1103982291, "capture.pdf", {})
if not file:
    raise RuntimeError("Download failed")
print(file)
