R project for sending an alert when a YouTube channel hits a certain number of views.
Fill out a config.xml
in the same format as sample_confg.xml
and save it in the same directory. To get an API key, go here and create a project for the YouTube Data API.
To setup RPushbullet
, make an account here and then follow these instructions to setup your account.
My ~/rpushbullet.json
looks like:
{
"key": "<key>",
"devices": [],
"names": []
}
To schedule mine, I just added 0 * * * * cd <path to>/IWearSneakers && Rscript main.R
to my crontab file.