PYPI PACKAGE AUDIT v0.1.0 Healthy Package

olostep-haystack

Haystack integration for Olostep: live web search, scraping, crawling, answers and batch extraction for AI pipelines

PyPkgScore olostep-haystack
Methodology & Criteria ♥ Donate
770 / 1000
Quick Install
pip install olostep-haystack
1. Governance
50/200
2. PEP Metadata
200/200
3. Security
200/200
4. Docs & SEO
155/200
5. CI Engineering
165/200
📣 Share Audit: Share this report and visual preview in the current language
Advertisement
PYPI TELEMETRY

Downloads & Community Adoption

Last 30 days (without mirrors)
Last 7 days
116
Last 30 days
116
Total (180 days)
116
Metric / Ecosystem Status / Value Source
Downloads (30d / 180d) — PyPI Stats (without mirrors)
Trusted Publishing (PEP 740) ✓ Verified OIDC PyPI Integrity / Sigstore
Django Packages — djangopackages.org
PyTech / PyPkgScore 770 / 1000 PyPkgScore Engine

Health & Engineering Analysis (5 Pillars)

1. Governance & Community50 / 200 ▾
LICENSE✓ 50 pts
SECURITY.md✕ 0 pts
CONTRIBUTING.md✕ 0 pts
CODE_OF_CONDUCT.md✕ 0 pts
2. PEP Metadata & Packaging200 / 200 ▾
Wheel (.whl)✓ 50 pts
pyproject.toml✓ 50 pts
Project URLs✓ 50 pts
Trove Classifiers✓ 50 pts
3. Security & Supply Chain200 / 200 ▾
Zero CVEs (OSV)✓ 60 pts
Trusted Publishing (OIDC)✓ 50 pts
Snyk / Audit Link✓ 40 pts
HTTPS Repository✓ 50 pts
4. Documentation, SEO & Ecosystem155 / 200 ▾
Structured README✓ 60 pts
Read the Docs✓ 50 pts
Django Packages✕ 0 pts
Website / Technical Articles✓ 45 pts
5. Engineering, CI & Quality165 / 200 ▾
Automated Tests✓ 65 pts
GitHub Actions CI✓ 65 pts
CHANGELOG.md✓ 35 pts
Env & Lockfile (uv/rye/poetry/pdm/hatch)✕ 0 pts
Advertisement
README & DOCS

Official Documentation & Usage Guide — olostep-haystack

PyPI Metadata v0.1.0
Show full original documentation (English README) ▾

olostep-haystack

PyPI

Haystack components for Olostep: live web search, scraping, crawling, answers with sources, and batch extraction of up to 100k URLs per batch, all returning Haystack Documents you can index, rank or pass to an LLM.

Why Olostep

Olostep is web data infrastructure for AI agents and enterprise AI workflows. Its APIs provide live web search, scraping and crawling to extract, clean and structure data from the web.

From a handful of URLs to hundreds of millions of pages, Olostep gives developers, AI companies and enterprises reliable, cost-effective access to clean, structured web data at scale. It's built for performance and high concurrency: up to 100k URLs in a single batch, and 1M with 10 batches in parallel. Pages are rendered with JavaScript, so single-page apps and dynamic sites come back complete.

New accounts get 500 free credits, no credit card required.

Installation

pip install olostep-haystack

Get an API key at olostep.com and set it as OLOSTEP_API_KEY. Works with Haystack 2.12 and later, including 3.x, on Python 3.10+.

Components

Component Input Output
OlostepWebSearch query documents (one per result) and links
OlostepScraper urls documents (each page as markdown, text or HTML)
OlostepAnswer query answer (text, or JSON in your shape) and links (sources)
OlostepMapper url, optional search_query links (the site's URLs)
OlostepCrawler url documents (every crawled page as markdown)
OlostepBatchScraper urls (up to 100,000) documents (every page as markdown)

Every component has run and run_async, and saves and loads with the pipeline. The API key is stored as a reference to OLOSTEP_API_KEY, never as its value.

Usage

Search the web

from haystack_integrations.components.websearch.olostep import OlostepWebSearch

search = OlostepWebSearch(top_k=5)
result = search.run(query="What is retrieval-augmented generation?")

for doc in result["documents"]:
    print(doc.meta["title"], doc.meta["url"])

Set scrape_results=True to get each result page's full markdown as the Document content, and include_domains / exclude_domains to control the sources.

Scrape pages

from haystack_integrations.components.websearch.olostep import OlostepScraper

scraper = OlostepScraper()
documents = scraper.run(urls=["https://haystack.deepset.ai/overview/intro"])["documents"]
print(documents[0].meta["title"], len(documents[0].content))

Answer a question, with sources

from haystack_integrations.components.websearch.olostep import OlostepAnswer

answer = OlostepAnswer(json_format={"company": "", "founded": ""})
result = answer.run(query="When was deepset founded?")
print(result["answer"], result["links"])

Index a docs site: map, then scrape

from haystack import Pipeline
from haystack.components.writers import DocumentWriter
from haystack.document_stores.in_memory import InMemoryDocumentStore
from haystack_integrations.components.websearch.olostep import OlostepMapper, OlostepScraper

store = InMemoryDocumentStore()
pipeline = Pipeline()
pipeline.add_component("mapper", OlostepMapper(top_n=20, include_url_patterns=["/docs/**"]))
pipeline.add_component("scraper", OlostepScraper())
pipeline.add_component("writer", DocumentWriter(document_store=store))
pipeline.connect("mapper.links", "scraper.urls")
pipeline.connect("scraper.documents", "writer.documents")

pipeline.run({"mapper": {"url": "https://docs.haystack.deepset.ai", "search_query": "retrievers"}})
print(store.count_documents())

Crawl a site or batch-scrape many URLs

from haystack_integrations.components.websearch.olostep import OlostepBatchScraper, OlostepCrawler

docs = OlostepCrawler(max_pages=50, include_url_patterns=["/blog/**"]).run(url="https://example.com/blog")["documents"]

# Up to 100,000 URLs per batch. Waits for the batch to finish (up to wait_timeout seconds).
docs = OlostepBatchScraper().run(urls=product_urls)["documents"]

For a handful of URLs, OlostepScraper is faster than a batch.

Errors

API errors raise OlostepError with a readable message (a bad key, no credits, a failed crawl). Rate limits, gateway errors and network failures are retried twice. OlostepScraper skips pages it couldn't fetch, with a warning; set raise_on_failure=True to stop instead.

Development

pip install -e . pytest ruff mypy
pytest
ruff check src tests && ruff format --check src tests && mypy src

The tests mock the Olostep API, so they don't need a key.

Links

License

Apache-2.0