Skip to content

Add weekly admin stats digest — email Kamsi a scrape summary after each run #50

Description

@kamsirichard

Context

After every scrape, ScoutBot has all the data it needs to answer useful questions: how many new opportunities were found? How many were removed as expired? Which sources produced the most results? Currently none of this is reported — it just runs silently.

Task

Add a short admin summary email sent to kamsirichard1960@gmail.com after each full scrape cycle.

Contents of the summary

  • Total new opportunities added (Nigeria + International breakdown)
  • Total entries removed (expired/closed)
  • Top 3 sources by new entries this run
  • Total subscribers (pulled from the Subscribers tab)
  • Any hard bounces that occurred this run

Implementation notes

  • Add a notify_admin() function in notify.py or a new admin_report.py
  • Call it from run.py at the end of full_pipeline()
  • Keep it simple: plain text or minimal HTML, no batching needed (1 recipient)
  • Subject: ScoutBot Admin — Scrape Report [date]

Files to touch

  • notify.py or new admin_report.py
  • run.py

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions