PlaybooksCrawl Any Website
Set up
Get a Piloterr API key, install the dependencies and review the parameters.
Prerequisites
- A Piloterr API key, from app.piloterr.com. The examples read it from the
PILOTERR_API_KEYenvironment variable, so the key never sits in your code:
export PILOTERR_API_KEY="your_api_key"- Install dependencies for your language:
pip install requests beautifulsoup4Parameters
| Parameter | Required | Description |
|---|---|---|
query | Yes | The URL to fetch, including http:// or https://. |
allow_redirects | No | Follow HTTP redirects. Defaults to true; set false to stop at the first response. |
return_page_source | No | Defaults to false, which returns the processed page. Set true to get the exact HTML source as the server sent it. |