Web scraper that collects free games posts published on Reddit and sends them to Discord. All information collected has their respective links and authors mentioned.
The bot scrapes the subreddit r/FreeGameFindings and collects recent publications. After collection, the bot removes those that are ads, that have no origin or that have already been sent. At the end, the publications are sent to discord through the webhook.
- Clone the project.
- Install the dependencies:
npm install
- Create a file called
.env
at the project root and put the variables values:
WEBHOOK= # Discord webhook URL
INTERVAL= # Interval in ms
-
Type
node .
to start the application. -
(optional) You can host on some of these platforms for free:
- Heroku: https://www.heroku.com/home
- Glitch: https://glitch.com/