apify_animation_01_02
Actor picture

Screenshot Taker

jancurn/screenshot-taker

Takes a screenshot of one or more web pages using Chrome browser. The actor enables the setting of custom viewport size, page load timeout, delay, proxies, and output image format.

Screenshot taker

This Apify actor takes a screenshot of one or more web pages using Chrome browser. The actor enables the setting of custom viewport size, page load timeout, delay, proxies, and output image format.

Results

The screenshots are stored in the the default key-value store associated with the actor run. For each web page on input, the dataset contains a record such as:

{
  "request": {
    "url": "https://www.example.com",
    "method": "GET",
    "payload": null,
    "userData": {}
  },
  "response": {
    "status": 200,
    "headers": {
      "status": "200",
      "content-encoding": "gzip",
      "cache-control": "max-age=604800",
      "content-type": "text/html; charset=UTF-8",
      "content-length": "606"
    }
  },
  "finishedAt": "2019-07-14T16:16:56.230Z",
  "screenshotUrl": "https://api.apify.com/v2/key-value-stores/x2xiRLsycdTpFQFSo/records/screenshot-2c730012.jpeg"
}

If an error occurs during loading or processing of a web page, the page is retried (up to pageMaxRetryCount times - see input schema). If the error persists, the resulting dataset will contain a record such as the following:

{
  "request": {
    "url": "https://non-existing-page.net",
    "method": "GET",
    "payload": null,
    "userData": {}
  },
  "response": null,
  "finishedAt": "2019-07-14T16:24:41.257Z",
  "errorMessages": [
    "Error: net::ERR_NAME_NOT_RESOLVED at https://non-existing-page.net\n    at navigate ...",
    "Error: net::ERR_NAME_NOT_RESOLVED at https://non-existing-page.net\n    at navigate ...",
    "Error: net::ERR_NAME_NOT_RESOLVED at https://non-existing-page.net\n    at navigate ..."
  ]
}
  • Modified
  • Last run
  • Used161 times