Skip to content
/ dbavis Public

A simple crawler for getting notification of new stuff on DBA

Notifications You must be signed in to change notification settings

libo/dbavis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dbavis

Simple script to check when there is a Google Pixel to buy on the “eBay of Denmark” and notify you via email. You can easily modify to look for other stuff.

Install

bundle install
mkdir logs
ruby script.rb <email-to-notify@domain.com>

Generally you would run this via crond

This example runs it every 10 minutes and gives for granted you are running rbenv:

*/10 * * * * /bin/bash -c 'export PATH="$HOME/.rbenv/bin:$PATH" ; eval "$(rbenv init -)"; cd <path to dbavis>; ruby ~/dbavis/script.rb <email-to-notify@domain.com>' > /dev/null 2>&1

You might want to look into Amazon SES E-mail service to send out email. They have a free plan with 200 deliveries a day. You just need to white-list the email you want to notify and configure Postfix to use their SMPT.

About

A simple crawler for getting notification of new stuff on DBA

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages