capabilities.work

Scrape Then Screenshot

A 2-step recipe with Browserless. We can help you get access.

Recipe · 2 steps

Scrape Then Screenshot

Scrape structured elements from a URL and capture a matching screenshot.

  1. Extract structured data for the supplied selectors from the URL, returning element text, HTML, attributes, and geometry under the data array.
  2. Capture a full-page PNG screenshot of the same URL to accompany the scraped element data.
What you'll need to have ready
  • token: The Browserless authorization token passed as a query parameter.
  • url: The URL of the page to scrape and screenshot.
  • selectors: An array of element selector objects to extract from the page.
For your developer

Arazzo workflow browserless:scrape-then-screenshot, 2 operations: {$sourceDescriptions.browserRestApisApi.url}#/paths/~1chrome~1scrape/post → {$sourceDescriptions.browserRestApisApi.url}#/paths/~1chrome~1screenshot/post. Specs on APIs.io.