Task
A manager needed to know every week which bonus promotions four fuel chains run, by region (up to 43). The terms sit on websites, in Telegram and in PDFs, some of them scans.
What was done
- Wrote a parser that collects the promotions of four chains by region every week
- Taught it to read terms from PDFs and to recognise scans with Tesseract OCR
- Combined everything into an Excel workbook and a PDF with charts, a map and a calculator for a typical fill-up
- Built an operator panel in Streamlit: start a run, check source status, review disputed rows
- Set safeguards: a failed or empty run never replaces the last file, and a partial run is marked as partial
Result
Once a week the manager gets a file of promotions and sees which sources were collected in full and which in part.
