How machacekmartin/twingo-notifier works
This repository is a scheduled Renault Twingo listing notifier. Its workflow scrapes three marketplaces, combines their offers, compares IDs with the persisted JSON history, then records new offers and writes an HTML email body for the automation to send. The README also documents scheduled GitHub Actions runs, repository write access, and SMTP configuration. Scraper and main-script relationships are visible in excerpts; the scheduler and mail-sending workflow are documented but their workflow source was not provided, so those links are shown as unverified.
Main entry points: index.js Notifier runner · twingos-email.html Email body file · twingos.json Offer history · bazoscz.js Bazos scraper
Components 12
Marketplace collection
- Bazos scraper
scrapers/bazoscz.js - Sbazar scraper
scrapers/sbazarcz.js - Sauto scraper
scrapers/sautocz.js
Detection and output
- Notifier runner
index.js - Offer history
twingos.json - New-offer detection
index.js - History update
index.js - Email body generation
index.js - Email body file
twingos-email.html
Other components
- Scheduled run
- SMTP mail service
- Configured recipient
Connections 12
- Scheduled run → Notifier runner: starts run
README.md - Notifier runner → Bazos scraper: scrapes listings
index.js - Notifier runner → Sbazar scraper: scrapes listings
index.js - Notifier runner → Sauto scraper: scrapes listings
index.js - Notifier runner → Offer history: reads
index.js - Notifier runner → New-offer detection: compares IDs
index.js - New-offer detection → History update: triggers update
index.js - History update → Offer history: appends offers
index.js - New-offer detection → Email body generation: triggers generation
index.js - Email body generation → Email body file: writes HTML
index.js - Email body file → SMTP mail service: sent by workflow
README.md - SMTP mail service → Configured recipient: emails alerts
README.md