Skip to main content

scrapeowl

Python bindings for ScrapeOwl: a Rust-native, self-hosted scraping engine with a deterministic (LLM-free) path, a legacy bounded crawler and schema-validated LLM extraction.

pip install scrapeowl
import scrapeowl

markdown = scrapeowl.fetch("https://example.com")
data = scrapeowl.fetch("https://example.com", format="json")

schema = {
    "type": "object",
    "required": ["title"],
    "properties": {"title": {"type": "string"}},
}
result = scrapeowl.extract(
    "https://example.com",
    schema,
    model="gpt-4o-mini",  # reads OPENAI_API_KEY by default
)

report = scrapeowl.crawl(
    "https://example.com",
    max_depth=2,
    max_pages=25,
    respect_robots=True,
)
for page in report["pages"]:
    print(page["url"], page["content"]["metadata"]["title"])

fetch never needs an LLM or credentials. crawl is a legacy fallback: it is breadth-first, same-origin by default, deduplicates URLs and returns per-page failures without aborting the job, but new crawling and JavaScript-rendering work should use MudFish. extract supports provider="openai" (OpenAI-compatible /chat/completions) and provider="ollama" (/api/chat); output must parse as JSON and validate against the schema, with bounded repair.

Security defaults: private/loopback destinations are refused unless allow_private=True (needed for a local Ollama endpoint), redirects and response sizes are bounded, and API keys are read from environment variables or provider headers, never embedded in URLs.

Apache-2.0. Not affiliated with ScrapeGraphAI.

Metadata

Release files for scrapeowl 0.2.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for scrapeowl 0.2.2
File Size Uploaded Provenance
scrapeowl-0.2.2.tar.gz 72.6 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for scrapeowl 0.2.2
File Interpreter ABI Platform
scrapeowl-0.2.2-cp39-abi3-macosx_11_0_arm64.whl CPython 3.9 abi3 macOS 11.0+ ARM64 Details

Total release size: 6.3 MB

Release files / scrapeowl-0.2.2.tar.gz

Download URL scrapeowl-0.2.2.tar.gz
Size 72.6 kB
Tags Source
SHA-256 checksum
How to use checksums
f4f4a4b999732030e5721e23fad07291fb5d2803a4dbfb3610857df38619a969
BLAKE2b-256 checksum
How to use checksums
d1995a5f210f1c4e975ceff1848a57353dce0270950cd5b99017e5f373460bca
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.6

Release files / scrapeowl-0.2.2-cp39-abi3-macosx_11_0_arm64.whl

Download URL scrapeowl-0.2.2-cp39-abi3-macosx_11_0_arm64.whl
Size 6.3 MB
Tags CPython 3.9 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
17d6b86c6d1d848b28d6414c3382e24c93c6322eef19d91ee02e28cf155b9ad8
BLAKE2b-256 checksum
How to use checksums
942833d790eec6320a43d7f6eebb5cf235e0e6de8835d8a9c658ab1e7bc96bdd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.6

Security for scrapeowl 0.2.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page