GMB-Scraper/lib/__init__.py
Zulkifli 5e893db025 feat: GMB Scraper v4 — production-grade pain-aware lead gen engine
- Stealth mode: playwright-stealth, random fingerprints, human delays
- Retry logic: exponential backoff (3 attempts)
- Logging: rotating logs to /root/.hermes/logs/gmb/
- Validation: phone/website/rating validation + dedup
- Pain detection: 12 signals, scoring, service matching
- Review scraper: extract reviews + pain keyword detection
- Website health: SSL, speed, mobile, contact form checks
- Pitch generator: Apex pitches (SMS, email, call, Gumtree)
- Docker containerization
- .env for secrets (no hardcoded API keys)
- Integration with Pipecat voice dialer (gmb_to_voice.py)
2026-06-06 19:45:44 +08:00

25 lines
730 B
Python

"""
GMB Scraper Library Modules
============================
Production-grade components for Google Maps scraping.
"""
from .logger import setup_logger, get_logger
from .retry import retry_with_backoff
from .stealth import apply_stealth
from .validator import validate_lead
from .pain_detector import detect_pain_signals, calculate_pain_score
from .review_scraper import scrape_reviews
from .health_checker import check_website_health
from .pitch_generator import generate_apex_pitch
__all__ = [
'setup_logger', 'get_logger',
'retry_with_backoff',
'apply_stealth',
'validate_lead',
'detect_pain_signals', 'calculate_pain_score',
'scrape_reviews',
'check_website_health',
'generate_apex_pitch',
]