← Back to the Browser Automation category

Browser Scrape

Scrapes structured data from web pages using CSS selectors. Either url or html is required (not both). Elements parameter is required. See [Cloudflare Browser Rendering Scrape Endpoint](https://developers.cloudflare.com/browser-rendering/rest-api/scrape-endpoint/) for details.

BrowserWebCloudflareScrape
Try this node

Inputs

NameTypeRequiredDescription
urlstringNoThe URL to render (either url or html required, not both)
htmlstringNoHTML content to render (either url or html required, not both)
elementsjsonYesArray of CSS selectors to scrape (required)
gotoOptionsjsonNoPage navigation options
waitForSelectorjsonNoSelector to wait for before scraping

Outputs

NameTypeDescription
resultsjson-
statusnumberHTTP status code from Cloudflare API
errorstringError message if the request fails

Related Nodes in Browser Automation