Hotdeal Monitor
Run the checker script to collect, rank, dedupe, and emit a report payload.
Run
bash
python3 scripts/hotdeal_check.py \ --sources ppomppu,ruliweb,quasarzone \ --max-per-source 20 \ --max-alert 8 \ --seen-file memory/hotdeal-seen-v2.json \ --out-json /tmp/hotdeal-report.json
Scoring
Use source-local ranking:
- •
score = comments*5 + reco*3 + ln(views+1)
Dedup
Use cross-source dedupe key:
- •normalized title tokens + normalized price
Output contract
Script writes JSON containing:
- •
items_raw - •
items_ranked - •
items_deduped - •
items_new - •
summary
Use items_new for alerting. Include per-item source link in outbound message.
Notes
- •Prefer individual post URLs when parsed.
- •If parsing fails for a source, skip that source and continue.
- •Keep state in
seen-fileto avoid duplicate alerts.