Build Your Own Tariff Change Radar in ~70 Lines of Python
Описание и применение
Создайте собственный радар изменений тарифов, используя ~70 строк Python, который автоматически отслеживает открытый репозиторий и отправляет уведомления о новых изменениях.
Задача
Tariff changes occur frequently and need timely notification for import pricing decisions.
Результат
The radar runs from cron, watches an open dataset, and pings a webhook when the tariff stack moves, avoiding scraping and API keys.
Рабочий процесс
- Clone or pull the invoicetariff/invoicetariff repo
- Load data/changelog.json and ruleset‑seed.json
- Compare entry IDs against stored state file
- If new entries exist, send a webhook payload
- Update state file with new IDs
Доказательства
Tariff rates don't sneak up on anyone — tariff changes do.
The raw sources are hostile to automation. Federal Register notices are prose; exclusion lists ship as PDF attachments; CBP publishes CSMS messages on a page that assumes a human is reading it.
Three properties make this watchable: Git is the transport; status splits the timeline; the repo ships the ruleset itself.
- Дата записи: 2026-10-18T16:11:09.396Z