Skip to content

A simple ruby script to monitor the PAX website and twitter to notify you ASAP when badges are incoming.

Notifications You must be signed in to change notification settings

alexjwong/pax-badger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pax-badger

A simple ruby script to notify you of impending availability of pax badges by monitoring the @offical_pax Twitter and paxsite.com!

Run this as a cron job when you know badges will be coming soon to get notified as soon as possible when badges are officially mentioned by PAX!

How to Use

This script is designed to be run as a scheduled cron job!

Locally

  • Run bundle install
  • Create a Twitter App, and a Twilio account
  • Set up a .env file containing info for Twitter {API_KEY, API_SECRET, ACCESS_TOKEN, and ACCESS_SECRET}, Twilio {ACCOUNT_SID and ACCESS_TOKEN}, and your telephone numbers {MY_NUMBER and TWILIO_NUMBER}
  • Run ruby pax-badger.rb {expo} {interval} to run the script.
    • {expo} can be east, prime, south, or aus
    • {interval} is the interval in seconds between scheduled runs of the script
    • For example, if you schedule the script to run every half hour to check for PAX East badges, run ruby pax-badger.rb east 1800
  • NOTE: you may have to cancel the cron job after initial notification waves to avoid more notifications.
  • To run the script not in the context of a cron job (single run), you can just use ruby pax-badger.rb {expo}.

Heroku

Dependencies

  • ruby >= 2.1.0
  • gem 'nogokiri' to parse html
  • gem 'twitter' to parse tweets
  • gem 'dotenv' to keep sensitive information safe
  • gem 'twilio-ruby' to send SMS notifications

Authors

Alex Wong

License

MIT

About

A simple ruby script to monitor the PAX website and twitter to notify you ASAP when badges are incoming.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages