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.
- 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
.
- Suggested usage: