feat: add recommendation command and expand test coverage

This commit is contained in:
luofengyuan committed 2026-05-18 19:27:41 +08:00
1 parent 702280a416
commit f9267352cc
9 files changed
+684 -4

No files matched your search

+15
View File
@@ -72,3 +72,18 @@ Read the provider reference that matches the requested service before answering
- [5SIM](references/5sim.md)
- [GrizzlySMS](references/grizzlysms.md)
- [Local auth example](references/auth.example.md)
## Recommend (price-first shortlist)
The unified CLI now supports a `recommend` command for price-driven shortlist generation:
- For `smsvn`: uses `getServicesAndCostWithStatistics` for a specific `--country`.
- For `5sim`: uses `guest_products/{country}/{operator}`.
- Supports filters: `--service`, `--max-price`, `--min-qty`, `--top-n`.
Examples:
```bash
python3 scripts/sms_activation.py --provider smsvn recommend --country 12 --max-price 0.2 --top-n 10
python3 scripts/sms_activation.py --provider 5sim recommend --country usa --operator any --service amazon --top-n 5
```