leesei / heroku-ctflogin

[DEPRECATED] Heroku app that logins Chau Tai Fook website for the user points

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[DEPRECATED] Heroku app: ctflogin

WARNING: CTF changes their login layout and REMOVED THE USER POINT SCHEME on 2015-01-27
this reopo no longer works


Heroku app that logins Chau Tai Fook website for the user points, yay!

The nuts and bolts are in bin/ and the following conifg, feel free to integrate to any Heroku app without using this repo.

Hint: use buildpack-multi for buildpack-casperjs.

Usage

Deployment and config:

$ git clone https://github.com/leesei/heroku-ctflogin.git

$ cd heroku-ctflogin

$ heroku create --buildpack https://github.com/leesei/heroku-buildpack-casperjs

$ git push heroku master

$ heroku config:set CTF_LOGIN=<login name> CTF_PASSWORD=<password>

Test with:

$ heroku run bin/ctflogin.sh

If everything is fine, add a daily Scheduler job for the above command:

$ heroku addons:add scheduler

$ heroku addons:open scheduler

login to CTF intermittently to see if ctflogin is doing the right job (hopefully so :-P)

Reference

https://devcenter.heroku.com/articles/scheduler

About

[DEPRECATED] Heroku app that logins Chau Tai Fook website for the user points

License:MIT License


Languages

Language:Shell 100.0%