Skip to main content

llama-index-readers-scrapely

LlamaIndex readers for Scrape.ly: run an Actor, or read an existing dataset, and get Documents back for your index.

pip install llama-index-readers-scrapely
export SCRAPELY_TOKEN=your-api-key

Create an API key in the Scrape.ly dashboard under Settings → API keys. The readers read it from SCRAPELY_TOKEN, or take it as scrapely_token=....

Run an Actor

from llama_index.core import Document, VectorStoreIndex
from llama_index.readers.scrapely import ScrapelyActor

docs = ScrapelyActor().load_data(
    actor_id='username/actor-name',
    run_input={'startUrls': [{'url': 'https://example.com'}]},
    dataset_mapping_function=lambda item: Document(
        text=item.get('text') or '', metadata={'url': item.get('url')}
    ),
)
index = VectorStoreIndex.from_documents(docs)

The index and query engine use OpenAI by default: pip install llama-index (or llama-index-embeddings-openai llama-index-llms-openai) and set OPENAI_API_KEY.

build, memory_mbytes and timeout_secs set the run options. A run that does not succeed raises RuntimeError.

Read an existing dataset

from llama_index.readers.scrapely import ScrapelyDataset

docs = ScrapelyDataset().load_data(
    dataset_id='YOUR_DATASET_ID',
    dataset_mapping_function=lambda item: Document(text=item.get('text') or ''),
)

dataset_mapping_function decides how each result becomes a Document, and must return one.

Docs

scrape.ly/docs/llama-index

License

MIT

Metadata

Release files for llama-index-readers-scrapely 0.1.0

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

Source distribution (sdist)

Source distribution for llama-index-readers-scrapely 0.1.0
File Size Uploaded Provenance
llama_index_readers_scrapely-0.1.0.tar.gz 4.0 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for llama-index-readers-scrapely 0.1.0
File Interpreter ABI Platform
llama_index_readers_scrapely-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 9.0 kB

Release files / llama_index_readers_scrapely-0.1.0.tar.gz

Download URL llama_index_readers_scrapely-0.1.0.tar.gz
Size 4.0 kB
Tags Source
SHA-256 checksum
How to use checksums
d53861b98fe81f15760f996816b8ebcdc266767b046b2735addb01a0a8920642
BLAKE2b-256 checksum
How to use checksums
660f1bbf385ec267e1924c72f9489bc29154b7176a535a373d619f51358f3641
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.5 {"installer":{"name":"uv","version":"0.13.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / llama_index_readers_scrapely-0.1.0-py3-none-any.whl

Download URL llama_index_readers_scrapely-0.1.0-py3-none-any.whl
Size 5.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8dbdd8415786fb7eab65d442b59003afecc61ca13d2626986b0caefb54b9688d
BLAKE2b-256 checksum
How to use checksums
c0a542226884be0fcadec647cceacec4ac40289624557b2c741146e2f5fa700e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.5 {"installer":{"name":"uv","version":"0.13.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for llama-index-readers-scrapely 0.1.0

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.

Release history Release notifications | RSS feed

This release

0.1.0 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