Skip to main content

realtimex-lead-search

Lead discovery and qualification flows for RealtimeX. Local-first scraping and storage; user-selected LLM (cloud or local). No auto-switching: cloud failures surface to the user.

Structure

  • realtimex_lead_search/lead_search_agent.py — entry point (run via uv run -m realtimex_lead_search.lead_search_agent).
  • realtimex_lead_search/lead_search/ — modules for scraping, LLM, extraction, scoring, data, cache, strategies, anti-detection, models, prompts.
  • docs/realtimex-lead-search-module-io.md — module IO reference.
  • tests/ — pytest coverage for strategies, extraction/scoring, and persistence.

Getting started

  1. Use uv run -m realtimex_lead_search.lead_search_agent --payload payload.json to execute (or pipe JSON to stdin). No pip install inside RealtimeX flows.
  2. Payload shape (extra fields ignored):
{
  "keywords": ["plumber near me"],
  "locations": ["seattle"],
  "sources": ["google_maps"],
  "pages_per_source": 2,
  "filters": {"categories": ["plumbing"], "must_have_phone": true},
  "llm": {"provider": "openai", "model": "gpt-4.1-mini", "base_url": "https://api.openai.com", "api_key": "sk-..."},
  "storage": {"sqlite_path": "./data/lead_search.db", "json_export": true}
}
  1. Optional: use_llm_extraction: true or CLI --use-llm to enable LLM parsing in addition to heuristics.
  2. Keep LLM selection user-driven; do not auto-fallback between providers.

Notes

  • Keep everything local except the user-selected LLM call.
  • Respect robots/delays; skip captchas rather than solving.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

realtimex_lead_search-0.2.0.tar.gz (21.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

realtimex_lead_search-0.2.0-py3-none-any.whl (23.5 kB view details)

Uploaded Python 3

File details

Details for the file realtimex_lead_search-0.2.0.tar.gz.

File metadata

  • Download URL: realtimex_lead_search-0.2.0.tar.gz
  • Upload date:
  • Size: 21.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.9

File hashes

Hashes for realtimex_lead_search-0.2.0.tar.gz
Algorithm Hash digest
SHA256 bde9b08c133d2b28aab777387dbb4c7423526dda6e3f02ec7babb8d65f706d60
MD5 a4a14417a741e01da904c747830d954e
BLAKE2b-256 5bea5f53cb49db2771bfbcde31552f4793dad166aff3dfffc9dfc2a476cbaaf6

See more details on using hashes here.

File details

Details for the file realtimex_lead_search-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for realtimex_lead_search-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d8459b4f213c4cad2a9543dd40428c3ab0f4e9382a40e7eabfed5af699729f7d
MD5 0f010d5f4e2a387736cc4a37246691bc
BLAKE2b-256 8a276867ae58e810a142358c333acb3a14288f20b2596de3747a65af4994b7c2

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 files

0.1.0

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page