NodeJS, automated log in for Stack Overflow. The Fanatic badge is just begging for it!
-
Deploy the app (heroku for example)
-
Set the environment vars :
$ export MAIL=your email $ export PASSWORD=your password
-
Schedule a cron :
$ crontab -e > 0 5,22 * * * wget -O - -q your-heroku-app.herokuapp.com # every day at 5h/22h
If using Heroku, you can also use the Heroku Scheduler, and the cronjob prepared for that (./bin/request.js
). You will also have to setup the enviroment var APP_URL
, and you can fully automate the load of the page:
That's it !