Crawl Any Website
Fetch the HTML of any public webpage with the Piloterr Website Crawler and extract structured data from it, without running your own crawling infrastructure.
This playbook shows how to fetch the HTML of a webpage with the Piloterr Website Crawler, then extract specific data from it. A typical use case is competitor price monitoring: crawl a product page daily and parse the price from the HTML.
The crawler makes a plain HTTP request and does not run JavaScript. It suits static and server-rendered pages. For pages that build their content in the browser, use Website Rendering (/v2/website/rendering); for pages behind anti-bot protection, use Website WebUnlocker (/v2/website/webunlocker).
Each call to GET /v2/website/crawler costs 1 credit. See Credits for how calls are billed.
Steps
Set up
Get a Piloterr API key, install the dependencies and review the parameters.
Crawl a webpage
Fetch the HTML of a page with the crawler.
Extract data from the HTML
Parse the title and headings out of the HTML.
Build a price monitoring script
Crawl a product page and extract its price.
Errors
What each error status means, and how redirects are handled.