ignigoliz / i-need-a-cat-asap

Bot to track the cats shelter and be the fastest to call

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

I Need a Cat ASAP

Cat shelter's logo

Copenhagen's cat shelters are highly monitorized by desperate cat seekers who spend the whole day refreshing the website. The few offers of adoption for flat-cats get taken in a matter of hours. In a desperate race to be the fastest one to call when a new cat is available, this bot webscraps the shelter's website and notifies me over email when a new cat is available for adoption.

A RaspberryPi running the code will have the solely mission to check if new kittens are available for adoption. If that is the case it will email me, another eager cat seeker.

In order to use it for your own cat-seeking, provide the following information in config.yml:

sender_email: xxx@gmail.com
password: abc123
receiver_mail: zzz@zzz.com

Moreover, to run the file every, e.g., 5 minutes, schedule a crontab job in the RaspberryPi using crontab -e:

*/5 * * * * /home/pi/Documents/Proyects/INeedACat/find_cat.sh

About

Bot to track the cats shelter and be the fastest to call


Languages

Language:Python 95.0%Language:Shell 5.0%