Official LlamaIndex reader for the WellMarked API — load any URL as clean Markdown.
Project description
llama-index-readers-wellmarked
The official LlamaIndex reader for WellMarked — load any URL as clean Markdown Documents.
pip install llama-index-readers-wellmarked
Quick start
Set your API key (get one at wellmarked.io):
export WELLMARKED_API_KEY="wm_..."
Load a single page:
from llama_index.readers.wellmarked import WellMarkedReader
reader = WellMarkedReader()
docs = reader.load_data("https://example.com/article")
docs[0].text # clean Markdown
docs[0].metadata # {"source": ..., "title": ..., "author": ..., "retrieved_at": ...}
Or crawl a whole site BFS-style — one Document per successfully extracted page (Pro plan and above):
reader = WellMarkedReader(mode="crawl", depth=2)
docs = reader.load_data("https://docs.example.com")
docs[0].metadata["depth"] # how far from the root URL this page sits
Drop the documents straight into an index:
from llama_index.core import VectorStoreIndex
index = VectorStoreIndex.from_documents(docs)
Options
All options are constructor arguments; load_data(url) takes only the URL.
| Parameter | Default | Description |
|---|---|---|
api_key |
env var | WellMarked API key; falls back to WELLMARKED_API_KEY |
mode |
"extract" |
"extract" (single page) or "crawl" (same-site BFS) |
depth |
1 |
Crawl depth (mode="crawl" only) |
render_js |
False |
Render JS-heavy pages with a headless browser (Pro and above) |
job_timeout |
300.0 |
Seconds to wait for a crawl job; None waits forever |
In crawl mode, pages that fail to extract (timeouts, robots-disallowed, no content) are skipped; only successful pages become Documents.
Related
wellmarked— the underlying Python SDK (this package wraps it)- WellMarked API docs
langchain-wellmarked— the LangChain equivalent
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file llama_index_readers_wellmarked-0.1.0.tar.gz.
File metadata
- Download URL: llama_index_readers_wellmarked-0.1.0.tar.gz
- Upload date:
- Size: 4.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ea9739728ade4c4c113617ac06b5bb503b1b8a67d2b576a7f8b1ef69a185e7f4
|
|
| MD5 |
8177bde48b42dc137194380436f65d10
|
|
| BLAKE2b-256 |
60adc3aa162fe361992cde4a8013c579b583ff864053bccc07d3328e410afd9f
|
Provenance
The following attestation bundles were made for llama_index_readers_wellmarked-0.1.0.tar.gz:
Publisher:
release.yml on WellMarkedAPI/llama-index-readers-wellmarked
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
llama_index_readers_wellmarked-0.1.0.tar.gz -
Subject digest:
ea9739728ade4c4c113617ac06b5bb503b1b8a67d2b576a7f8b1ef69a185e7f4 - Sigstore transparency entry: 2223012526
- Sigstore integration time:
-
Permalink:
WellMarkedAPI/llama-index-readers-wellmarked@92d588d685d448d2a07b5f67e84d20229e79a1d6 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/WellMarkedAPI
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@92d588d685d448d2a07b5f67e84d20229e79a1d6 -
Trigger Event:
release
-
Statement type:
File details
Details for the file llama_index_readers_wellmarked-0.1.0-py3-none-any.whl.
File metadata
- Download URL: llama_index_readers_wellmarked-0.1.0-py3-none-any.whl
- Upload date:
- Size: 5.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a13fd8b7cb05a9ad857bbbed72c6a22e6353c4f0962bae1c0ab0e868e1fa917d
|
|
| MD5 |
b8509082ca15fc3678aca29813435ce5
|
|
| BLAKE2b-256 |
8b9d30343d6ac4ac41f675db96dd32114695b0e1f93928251221a99f02bfa6dc
|
Provenance
The following attestation bundles were made for llama_index_readers_wellmarked-0.1.0-py3-none-any.whl:
Publisher:
release.yml on WellMarkedAPI/llama-index-readers-wellmarked
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
llama_index_readers_wellmarked-0.1.0-py3-none-any.whl -
Subject digest:
a13fd8b7cb05a9ad857bbbed72c6a22e6353c4f0962bae1c0ab0e868e1fa917d - Sigstore transparency entry: 2223013072
- Sigstore integration time:
-
Permalink:
WellMarkedAPI/llama-index-readers-wellmarked@92d588d685d448d2a07b5f67e84d20229e79a1d6 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/WellMarkedAPI
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@92d588d685d448d2a07b5f67e84d20229e79a1d6 -
Trigger Event:
release
-
Statement type: