Web Data Examples · Example 2 of 6

Web data with screenshot=true: the same data plus a screenshot object with a signed link to a JPEG of the page.

Asks for the web data of https://developer.mozilla.org/en-US/ and a screenshot (screenshot=true).

The response gains a screenshot object: screenshot_url (a signed link that expires after 7 days, X-Amz-Expires=604800), its own check_date and connection_status, url and redirected_url. With a screenshot, the page is always parsed after the load event, whatever wait_until says, so the result can differ a little from the default one: here html.content has 4,623 characters instead of 4,681 and starts without the site's navigation menu.

Request

What this example sends. Every parameter is documented on Web Data; the exact request is in the code panel.

ParameterValue
urlqueryhttps://developer.mozilla.org/en-US/
screenshotquerytrue

Reference updated