Skip to main content

Lead search helper for RealtimeX flows.

Project description

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.

Project details


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.1.0.tar.gz (18.7 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.1.0-py3-none-any.whl (20.8 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for realtimex_lead_search-0.1.0.tar.gz
Algorithm Hash digest
SHA256 fb9053e7c00c771f9b7b478f489d5c8b96b5796af7fd3ac9fb7a0b156a8a85d3
MD5 b39f7385a703ee36c3460577d76135bb
BLAKE2b-256 c8d44bf697f07beef3ced9c2713e743f1a07ba4dd6ec719e2b62346347d543ad

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for realtimex_lead_search-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4965a127577f0813bf68759b26c667572aebd22b991117df5aed08fe19599d06
MD5 4e2ec2157aa5e84b24afd794a92a12c0
BLAKE2b-256 dd8b37e343298b06348b726e11c70db3d8896679a4800f386a37315cbc7a7db8

See more details on using hashes here.

Supported by

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