import os
from browshot import BrowshotClient

client = BrowshotClient(os.environ["BROWSHOT_API_KEY"])
file = client.screenshot_thumbnail_file(1103982291, "thumbnail.png", { "width": 640 })
if not file:
    raise RuntimeError("Download failed")
print(file)
