scrapeowl
Python bindings for ScrapeOwl: a Rust-native, self-hosted scraping engine with a deterministic (LLM-free) path, bounded crawling 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 breadth-first,
same-origin by default, deduplicates URLs and returns per-page failures without
aborting the job. 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.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| scrapeowl-0.2.1.tar.gz | 72.2 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| scrapeowl-0.2.1-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.1.tar.gz
| Download URL | scrapeowl-0.2.1.tar.gz |
|---|---|
| Size | 72.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
60873a4b8185209d388830cc00c852428d9f1ad8a21ddde0e80c9b8694949998
|
|
BLAKE2b-256 checksum How to use checksums |
27dace900137ff2796e49927eb7a37ef817481a658a180b03f28e5808232c2a3
|
| 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.1-cp39-abi3-macosx_11_0_arm64.whl
| Download URL | scrapeowl-0.2.1-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 |
2b99fe61cf7c1f1831a2f0bc88b1e6596159e802b007248ea7678eb6e913fbcf
|
|
BLAKE2b-256 checksum How to use checksums |
3082b32fb11b87302915490bb7f483c87297381c895e6b04c41f890d2415198e
|
| 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.1
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.