Piloterr

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_KEY environment variable, so the key never sits in your code:
export PILOTERR_API_KEY="your_api_key"
  • Install dependencies for your language:
pip install requests beautifulsoup4

Parameters

ParameterRequiredDescription
queryYesThe URL to fetch, including http:// or https://.
allow_redirectsNoFollow HTTP redirects. Defaults to true; set false to stop at the first response.
return_page_sourceNoDefaults to false, which returns the processed page. Set true to get the exact HTML source as the server sent it.

On this page