Skip to content
This repository has been archived by the owner on Mar 2, 2023. It is now read-only.

meinside/free-epic-games-notifier

Repository files navigation

Free Epic Games Notifier

Fetch new free games from Epic Games' store and notify them through Pushbullet and etc.

Install

$ git clone https://github.com/meinside/free-epic-games-notifier.git
$ cd free-epic-games-notifier/
$ go build

Configure

$ cp epic_notifier.json.sample epic_notifier.json
$ vi epic_notifier.json

and set your tokens and urls there.

Run

Directly

$ ./free-epic-games-notifier

With Docker

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

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

Trouble Shooting

x. Error: operation timed out: n seconds

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.

License

MIT