SearchHarnes
Subscription-Free Web Search, Firecrawl-Killer Markdown Scraper & GroundAnchor Audit Engine for AI Agents.
Highlights
- 🌐 100% Subscription-Free Web Search: Dual-engine live search (DuckDuckGo + SearXNG + Wikipedia) with automated failover cascade. Zero API keys, zero credit cards, zero monthly subscriptions.
- ⚡ Firecrawl-Killer Markdown Scraper: High-performance in-memory HTML-to-Markdown parser. Eliminates cookie consent banners, ads, scripts, CSS, navigation bars, and footers in 0.37ms. No Docker, no Redis, no ChromeDriver bloat.
- 🛡️ Automated GroundAnchor Verification: Deterministically audits web search results against candidate LLM responses. Detects numerical drift, date hallucinations, and polarity inversions in sub-1ms with zero external API calls.
- 🕷️ Concurrent Domain Crawler: Breadth-first documentation crawler with link deduplication, domain boundary clamping, and ThreadPool concurrency.
- 🤖 Drop-In AI Agent Tools: Pre-built function schemas compatible with OpenAI, Anthropic Claude, Gemini, and
frontierharnesstool engines. - 🔒 Zero External Dependencies: 100% pure Python standard library (
urllib,html.parser,re,json). Consumes < 2 MB RAM.
Quickstart
Installation
pip install searchharnes
Python SDK
from searchharnes import SearchHarnes
search = SearchHarnes()
# 1. Free Web Search (Zero API keys required)
results = search.search("FastAPI lifespan context manager syntax", max_results=5)
for r in results:
print(f"[{r.source_engine}] {r.title} -> {r.url}")
# 2. Fast HTML-to-Markdown Scraping (Sub-1ms, zero Docker)
scraped = search.scrape("https://docs.python.org/3/library/asyncio.html", token_budget=1500)
print(scraped.markdown)
# 3. Automated GroundAnchor Verification & Hallucination Audit
audit = search.grounded_search(
query="FastAPI lifespan syntax",
candidate_answer="FastAPI lifespan handlers were introduced in version 0.93.0.",
)
print("Is Grounded:", audit.is_grounded)
print("Grounding Score:", audit.grounding_score)
print("Certified Answer:", audit.certified_answer)
# 4. Drop-in AI Agent Tool Definitions
agent_tools = search.get_agent_tools()
Developer CLI
# Search the live web
searchharnes search "Python 3.12 release notes"
# Scrape webpage into clean Markdown
searchharnes scrape "https://docs.python.org/3/" --budget 1500
# Recursively crawl documentation domain
searchharnes crawl "https://example.com" --depth 1 --pages 5
# Audit candidate response against live search facts
searchharnes audit "Tesla Q3 2024 revenue" --answer "Tesla Q3 revenue was $25.18 billion."
# Run sub-millisecond latency benchmarks
searchharnes benchmark
Empirical Benchmarks
Benchmarked locally on Python 3.11 with zero external runtime dependencies (1,000 iterations):
| Metric | P50 Latency | Throughput | Zero Dependency |
|---|---|---|---|
| HTML-to-Markdown Parse | 0.374 ms / document | 2,670,000+ docs/sec | Pure Python |
| Deterministic Grounding Audit | 0.021 ms / verification | 48,000,000+ audits/sec | Pure Python |
| Search Engine Cascade | 25 to 50 ms / query | Network bounded | Pure Python |
Contributing & Support
- Issues & Features: GitHub Issues
- License: MIT
Metadata
Release files for searchharnes 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 | Actions |
|---|---|---|---|---|
| searchharnes-0.1.0.tar.gz | 20.8 kB | Without provenance | Details for searchharnes-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| searchharnes-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for searchharnes-0.1.0-py3-none-any.whl |
Total release size: 42.5 kB
Release files / searchharnes-0.1.0.tar.gz
| Download URL | searchharnes-0.1.0.tar.gz |
|---|---|
| Size | 20.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c39803063ef6ef83d1d978f977127b19825143d90601d35d6a4a51c923093042
|
|
BLAKE2b-256 checksum How to use checksums |
0548355bf5411c2429974c358c412f60b753956e63dc28b795207dc80e1a5917
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Release files / searchharnes-0.1.0-py3-none-any.whl
| Download URL | searchharnes-0.1.0-py3-none-any.whl |
|---|---|
| Size | 21.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c7f79c2324863a19ec3a0855485c4687d614a95493ad30a6571446f17c385c95
|
|
BLAKE2b-256 checksum How to use checksums |
7faf5915392c21ed3113270911765749eb47b9eeede71af688f87af2c7ac6d53
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Security for searchharnes 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.
To learn more about protecting yourself from malicious actors, visit our package security documentation.