Skip to main content

Scrapeless Reader for LlamaIndex

Load completed Scrapeless results as LlamaIndex Document objects. The Reader uses the Scrapeless Python SDK and retains source information for downstream indexing and retrieval.

Install

Use Python 3.10 or later:

python -m pip install llamaindex-scrapeless==0.1.1

Set SCRAPELESS_API_KEY to a key from your Scrapeless dashboard. On macOS or Linux:

export SCRAPELESS_API_KEY="YOUR_SCRAPELESS_API_KEY"

Load a page

Save the following as quickstart.py in your working directory:

from llamaindex_scrapeless import ScrapelessReader

reader = ScrapelessReader(timeout=120, request_timeout=30)
documents = reader.load_data(
    "scrape",
    params={
        "url": "https://example.com",
        "options": {"formats": ["markdown"], "onlyMainContent": True},
    },
)

for document in documents:
    print("Source:", document.metadata.get("url"))
    print(document.text[:300])

Run python quickstart.py. This sends a live Scrapeless request. Check that the returned text describes the example domain and that the source URL matches the requested page. An empty list means no usable documents were returned. Failed or malformed task results raise an error.

Supported services

Product Reader service Input
Scraping API google_search, scraping Search input, or an actor and its input
Crawl scrape, batch_scrape, crawl Page URL or batch URL list, with optional Crawl settings
Web Unlocker web_unlocker Actor and request input
AI Scraper ai_scraper Actor and engine-specific input

See the Scrapeless Python SDK reference for product inputs. The Reader returns list[Document] across all seven routes. Choose your own LlamaIndex indexing, storage, and model configuration for downstream use.

On a polling timeout or a task result error, retain the original task ID when available. Polling timeout does not cancel the remote job. Inspect the original job before deciding whether to resume it; the Reader does not automatically submit a replacement.

The 0.1.1 source distribution includes the repository examples, usage notes, and tests. The installed wheel is sufficient for the standalone quick start above.

For support, contact support@scrapeless.com with the version, reproduction steps, and a sanitized error message.

Metadata

Release files for llamaindex-scrapeless 0.1.1

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

Source distribution (sdist)

Source distribution for llamaindex-scrapeless 0.1.1
File Size Uploaded Provenance Actions
llamaindex_scrapeless-0.1.1.tar.gz 457.5 kB Without provenance Details for llamaindex_scrapeless-0.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for llamaindex-scrapeless 0.1.1
File Interpreter ABI Platform Actions
llamaindex_scrapeless-0.1.1-py3-none-any.whl Python 3 none any Details for llamaindex_scrapeless-0.1.1-py3-none-any.whl

Total release size: 469.9 kB

Release files / llamaindex_scrapeless-0.1.1.tar.gz

Download URL llamaindex_scrapeless-0.1.1.tar.gz
Size 457.5 kB
Tags Source
SHA-256 checksum
How to use checksums
e125e7179f3661d16d19a136ac4c34835ba8ea74ea90363dc94ce4710d0dd071
BLAKE2b-256 checksum
How to use checksums
3c760bf173c75d3ba9a5c596e9173d00107b191171e54236494a8abe981466db
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.16

Release files / llamaindex_scrapeless-0.1.1-py3-none-any.whl

Download URL llamaindex_scrapeless-0.1.1-py3-none-any.whl
Size 12.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0dcd336f96ffc2a74cbf537fc26faa0cfc47fae6677b0b20137b7404ab9d730d
BLAKE2b-256 checksum
How to use checksums
3b80e81f874a7a7ae4d835c174797f0f437dc715b1aafe83f7a8fdc43cc301d0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.16

Security for llamaindex-scrapeless 0.1.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.

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

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files No provenance

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