Page API
The Page object represents a fetched web page with a parsed DOM tree. It is the primary interface for extracting data from a single URL.
6 min read Updated July 2026
Constructor
| Parameter | Type | Default | Description |
|---|---|---|---|
| url | str | — | Target URL to fetch |
| session | Session | None | Shared configuration (headers, proxy, rate limit, etc.) |
Properties
| Property | Type | Description |
|---|---|---|
| status | int | HTTP response status code (e.g. 200, 404) |
| url | str | Final URL after all HTTP redirects |
| html() | str | Raw HTML page content |
| markdown() | str | Clean GitHub-flavored markdown conversion of page content |
CSS Selectors
XPath Selectors
Regex Selectors
Text Anchor Selectors (SIMD-Accelerated)
Locate elements relative to visible text content using SIMD-accelerated string scanning.
Extraction Types
Apply built-in transformations to clean and normalize extracted values instantly:
| Extraction Type | Input Example | Output Example |
|---|---|---|
| text | " Hello World " | "Hello World" |
| price | "$1,234.56 USD" | "1234.56" |
| datetime | "Jan 15, 2024" | "2024-01-15" |
| url | "/product/1" | "https://example.com/product/1" |
