How smlfg/mydealz-cli works
mydealz-cli is a read-only command-line client that emits JSON for deal searches, deal details, and local keyword watches. The main workflow parses CLI input, builds a search URL, fetches public HTML, parses and filters deal records, then emits the result; show follows its own fetch-and-parse path, while watch compares results with local state. The graph reflects excerpted calls and README-documented behavior; the optional Playwright renderer is documented but its implementation was not sampled.
Main entry points: cli.py Command dispatch · http_client.py HTTP client · parser.py Deal list parser · watch.py New-deal comparison
Components 13
CLI entry
- Command dispatch
src/mydealz_cli/cli.py - JSON output
src/mydealz_cli/cli.py
Search pipeline
- Search URL builder
src/mydealz_cli/url_builder.py - Deal list parser
src/mydealz_cli/parser.py - Local filtering
src/mydealz_cli/cli.py
Deal details
- Deal URL resolution
src/mydealz_cli/cli.py - Metadata detail parser
src/mydealz_cli/parser.py - Playwright rendering
Local watch
- New-deal comparison
src/mydealz_cli/watch.py - Watch state file
src/mydealz_cli/watch.py
HTTP transport
- HTTP client
src/mydealz_cli/http_client.py
Other components
- CLI user
- mydealz.de
Connections 17
- CLI user → Command dispatch: invokes
README.md - Command dispatch → Search URL builder: builds query URL
src/mydealz_cli/cli.py - Command dispatch → HTTP client: fetches search
src/mydealz_cli/cli.py - HTTP client → mydealz.de: GETs HTML
src/mydealz_cli/http_client.py - Command dispatch → Deal list parser: parses response
src/mydealz_cli/cli.py - Deal list parser → HTTP client: raises parse errors
src/mydealz_cli/parser.py - Command dispatch → Local filtering: filters deals
src/mydealz_cli/cli.py - Command dispatch → JSON output: emits JSON
README.md - Command dispatch → Deal URL resolution: resolves detail
README.md - Command dispatch → HTTP client: fetches detail
src/mydealz_cli/cli.py - Command dispatch → Metadata detail parser: parses metadata
src/mydealz_cli/cli.py - Metadata detail parser → HTTP client: raises parse errors
src/mydealz_cli/parser.py - Command dispatch → Playwright rendering: optionally renders
README.md - Command dispatch → Watch state file: loads and saves
src/mydealz_cli/cli.py - Command dispatch → New-deal comparison: compares results
src/mydealz_cli/cli.py - New-deal comparison → Watch state file: reads saved IDs
src/mydealz_cli/watch.py - Command dispatch → JSON output: emits watch results
src/mydealz_cli/cli.py