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 viauv 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
- Use
uv run -m realtimex_lead_search.lead_search_agent --payload payload.jsonto execute (or pipe JSON to stdin). No pip install inside RealtimeX flows. - 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}
}
- Optional:
use_llm_extraction: trueor CLI--use-llmto enable LLM parsing in addition to heuristics. - 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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bde9b08c133d2b28aab777387dbb4c7423526dda6e3f02ec7babb8d65f706d60
|
|
| MD5 |
a4a14417a741e01da904c747830d954e
|
|
| BLAKE2b-256 |
5bea5f53cb49db2771bfbcde31552f4793dad166aff3dfffc9dfc2a476cbaaf6
|
File details
Details for the file realtimex_lead_search-0.2.0-py3-none-any.whl.
File metadata
- Download URL: realtimex_lead_search-0.2.0-py3-none-any.whl
- Upload date:
- Size: 23.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d8459b4f213c4cad2a9543dd40428c3ab0f4e9382a40e7eabfed5af699729f7d
|
|
| MD5 |
0f010d5f4e2a387736cc4a37246691bc
|
|
| BLAKE2b-256 |
8a276867ae58e810a142358c333acb3a14288f20b2596de3747a65af4994b7c2
|