How bhavishya41/price_drop works
This repository contains two standalone product-price monitors: one tracks a MCHOSE keyboard and the other a VXE mouse. Each script fetches product JSON, selects a variant using SKU and text fallbacks, compares its price with a local baseline, and sends a Telegram alert when the price falls. The scripts maintain separate state files and do not call one another. The workflow file is not mapped because its contents were not provided.
Main entry points: main.py Keyboard monitor · mouse.py Mouse monitor · last_price.txt Keyboard baseline · last_price_mouse.txt Mouse baseline
Components 6
Price monitors
- Keyboard monitor
main.py - Mouse monitor
mouse.py
Price state
- Keyboard baseline
last_price.txt - Mouse baseline
last_price_mouse.txt
External services
- GenesisPC store
- Telegram API
Connections 8
- Keyboard monitor → GenesisPC store: fetches product
main.py - Keyboard monitor → Keyboard baseline: reads baseline
main.py - Keyboard monitor → Keyboard baseline: writes price
main.py - Keyboard monitor → Telegram API: sends alert
main.py - Mouse monitor → GenesisPC store: fetches product
mouse.py - Mouse monitor → Mouse baseline: reads baseline
mouse.py - Mouse monitor → Mouse baseline: writes price
mouse.py - Mouse monitor → Telegram API: sends alert
mouse.py