Docs/API reference

Python API

Browse every package export and its declared methods, fields, parameters, returns, source links and known limitations.

Download .md
Developers3 min read4 sections
Source reference · Match your SDK version. Availability and known issues
In this guide

What this reference covers

30 package exports; 39 documented symbols including reachable types and helpers; 204 explicitly declared members. Inherited standard-library members are not included in this count.

These are source inventory counts, not a percentage of working features. Classes with broken or limited wrapper paths are marked in their member entries.

Classes and result objects

SymbolMembersPurpose
CrawlResults9Python collection of per-page extraction results.
Crawl16Discover linked pages and extract a small in-memory result set.
Dataset12Extract named fields from one page, with optional validation and small-result exports.
DatasetResult8Read and export a single extracted field map.
DatasetJob4Process a URL file into bounded, validated, resumable dataset shards.
DownloadResult6Response metadata and bytes actually retained/written. Check status and resumed explicitly.
Downloader6Save a response to a local file or receive its bytes in memory.
Element11Read one selected DOM element and its attributes.
ElementCollection14Read, iterate and select from multiple DOM matches.
CrawlingoError0Base exception for Crawlingo.
FetchError0Raised when request fetching fails.
ParseError0Raised when parsing fails.
SelectorError0Raised when selection query syntax or evaluation fails.
AutoMatchFailed0Raised when DOM fingerprint auto matching fails.
TimeoutError0Raised when an operation times out.
RateLimitError0Raised when host request rate limit is hit.
ChangeDetectionError0Raised when change detection fails.
ExportError0Raised when exporting dataset to CSV/Parquet/JSON fails.
DnsError0Raised when DNS resolution or caching fails.
FingerprintStoreError0Raised when reading or writing to the fingerprint store fails.
Page16Fetch one page and inspect its parsed HTML before defining a dataset schema.
RequestContext3
ResponseContext2
PaginationConfig4Choose how a crawler discovers the next page.
FieldType4Select string, integer, float or boolean validation.
FieldConstraint4Describe a field name, its type and whether it is required.
DatasetSchema3Validate required fields and canonicalize string values in small Dataset results.
Session34Own shared request defaults, connection pools, per-host pacing and retry settings.
SitemapEntry6Sitemap URL metadata. lastmod and priority are source strings, not validated dates or numbers.
Sitemap11Discover URLs from a sitemap or use them to seed a bounded crawl.
Watch12Poll selected fields and deliver detected changes to application callbacks.
ChangeEvent8Python callback event with snake_case fields. change_type is content, price, stock, added or removed.

Function declarations

SymbolMembersPurpose
hooks.strip_whitespace1Strips leading and trailing whitespace from extracted content.
hooks.uppercase1Converts extracted content to uppercase.
hooks.lowercase1Converts extracted content to lowercase.
hooks.log_request1Simple logger hook that prints the target URL before fetching.
hooks.log_response1Simple logger hook that prints the HTTP status code after fetching.
sitemap_url_for_origin1Return the canonical ``/sitemap.xml`` URL for a given origin.

Module declarations

SymbolMembersPurpose
hooks5Value-cleaning and logging helpers for Python Page hooks.