Fetch new free games from Epic Games' store and notify them through Pushbullet and etc.
$ git clone https://github.com/meinside/free-epic-games-notifier.git
$ cd free-epic-games-notifier/
$ go build
$ cp epic_notifier.json.sample epic_notifier.json
$ vi epic_notifier.json
and set your tokens and urls there.
$ ./free-epic-games-notifier
Build image,
$ docker build -t MY_IMAGE_TAG .
then run it with:
$ docker run -t -v free-epic-games-caches:/caches MY_IMAGE_TAG
Run periodically with cron:
$ crontab -e
then add following:
# run at 12:00 everyday
0 12 * * * /path/to/free-epic-games-notifier
# run with docker at 12:00 everyday
0 12 * * * docker run -t -v free-epic-games-caches:/caches MY_IMAGE_TAG
If the store page has changed and css selector no longer works, it will timeout.
Check the store page's DOM structure, fix the affected selectors, and try again.
MIT