llama-index-readers-anakin
Load web content into LlamaIndex with Anakin. Scrape
pages, crawl a site, take web search results or a site's URL map, and get
LlamaIndex Documents ready to index. Built on the official
anakin-sdk client.
Install
pip install llama-index-readers-anakin
export ANAKIN_API_KEY=... # free at https://anakin.io/dashboard
Usage
from llama_index.core import VectorStoreIndex
from llama_index.readers.anakin import AnakinWebReader
# Crawl a docs site into a vector index.
reader = AnakinWebReader(
mode="crawl",
params={"max_pages": 50, "include_patterns": ["/docs/*"]},
)
documents = reader.load_data(url="https://anakin.io/docs")
index = VectorStoreIndex.from_documents(documents)
# Scrape a list of pages, 10 at a time in parallel.
pages = AnakinWebReader().load_data(urls=["https://example.com/a", "https://example.com/b"])
# Pages that need JavaScript to render.
spa = AnakinWebReader(params={"use_browser": True}).load_data(url="https://example.com/app")
Modes
mode |
Call | One Document per | params go to |
|---|---|---|---|
scrape (default) |
load_data(url=...) or load_data(urls=[...]) |
page, as markdown | Anakin.scrape for one URL, Anakin.scrape_batch for several |
crawl |
load_data(url=...) |
crawled page, as markdown | Anakin.crawl |
search |
load_data(query=...) |
search result (title and snippet) | Anakin.search |
map |
load_data(url=...) |
URL found on the site | Anakin.map |
params takes that SDK call's keyword arguments, for example country,
use_browser, session_id (a saved browser login), max_pages, depth,
include_patterns, exclude_patterns or limit. Batch scraping takes fewer
options than single-page scraping (no force_fresh or formats), and an option
it doesn't take raises TypeError.
Documents
- IDs. A scraped or crawled page's Document ID is its URL. Loading the same
page again updates it in an
IngestionPipelinewith a docstore instead of adding a duplicate. - Metadata. Each Document has
url. Search results also havetitle,dateandquery. The bookkeeping fields (source,mode,job_id,cached,crawl_url,site_url) are kept out of embeddings and LLM prompts. - Failures. One URL that fails raises the SDK's error, such as
anakin.JobFailedError. With several URLs or a crawl, pages that fail are skipped and logged as warnings with their URL, status and job ID, so one blocked page doesn't lose the rest.
await reader.aload_data(...) runs the load in a worker thread.
Development
uv sync
uv run pytest
uv run ruff check . && uv run ruff format --check . && uv run mypy llama_index
License
MIT
Metadata
Release files for llama-index-readers-anakin 0.1.0
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 | |
|---|---|---|---|---|
| llama_index_readers_anakin-0.1.0.tar.gz | 4.9 kB | With provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| llama_index_readers_anakin-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 10.1 kB
Release files / llama_index_readers_anakin-0.1.0.tar.gz
| Download URL | llama_index_readers_anakin-0.1.0.tar.gz |
|---|---|
| Size | 4.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
eb42652ed4a5aa79666a5dc674fd72a34925e4d162584ae73a7e20fcc9dadcdb
|
|
BLAKE2b-256 checksum How to use checksums |
f4eb7e86f6d4a0f44ce27d73c6a68291c7599880cb78770938b0785d19bdd0e7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 12, 2026.
Transparency logRelease files / llama_index_readers_anakin-0.1.0-py3-none-any.whl
| Download URL | llama_index_readers_anakin-0.1.0-py3-none-any.whl |
|---|---|
| Size | 5.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d115d5e71c098ed6f93b20edcff987bbb928ac4907e1e51765f07f6222d115c4
|
|
BLAKE2b-256 checksum How to use checksums |
8296295c54caa23d07ac82c7cc03dd838ebe2b199726b0263e5cf4187e997b76
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 12, 2026.
Transparency logSecurity for llama-index-readers-anakin 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.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for llama_index_readers_anakin-0.1.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 12, 2026.
Transparency logA 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.