Skip to content

A Ruby app that scans the SPCA Montreal's website for new pets available for adoption and sends email notifications.

Notifications You must be signed in to change notification settings

jigarius/spca-scanner

Repository files navigation

SPCA Scanner

An application that sends email notifications when the SPCA website has new pets available for adoption.

I was thinking about adopting a cat, but cats at SPCA disappear like hot cake. This watcher sends you email notifications for new cats at intervals of 5-10 minutes so that you can have a matching furry-friend soon (and then uninstall the app).

~ Jigarius

I'm sure SPCA publishes this info on Twitter and there must be other tools that do similar things. However, I wanted to write some object-oriented Ruby code, so I wrote this tool.

Read the full article on Jigarius.com: Building a Web Scraper/Watcher with Ruby: Cats + Ruby + CLI + Emails.

Usage

  • Create .env based on .env.example.
    • SMTP config must be correct for emails to work.
    • You can get a free basic SMTP account from SMTP service providers like SendGrid.
  • lando start (Lando must be installed).
  • lando spcas; Execute a scan.
    • Suggested usage: lando spcas -v --category=cats --email --interval 10
    • More options: lando spcas help scan.

About

A Ruby app that scans the SPCA Montreal's website for new pets available for adoption and sends email notifications.

Topics

Resources

Stars

Watchers

Forks

Sponsor this project