A discord bot used to fetch data from FINN.no API and Kode24. The API fetches relevant job listings related to tech and developement.
To install the application, follow these steps:
- Clone the repository to your local machine.
- Navigate to the folders directory.
- Run npm install to install all the required dependencies.
- Create a ".env" file, using the "example.env" file as template.
- "discord.js": "^14.10.2",
- "dotenv": "^16.0.3",
- "finn-jobb": "1.0.7",
- "node-fetch": "^2.6.9"
- "node-schedule": "^2.1.1"
To start the bot, run the following command which is executed from the script in Makefile:
Make run
FINN-Jobb: A package to get all developer jobs from finn.no created by Toremann. Depository is linked below. FINN-jobb Depository
The function fetches job data from the Kode24.no and Finn.no API, with a delay of 1 to 10 seconds between each page request to avoid overloading the API. The fetched job data is stored in an array, which is then filtered by the specified location and returned as a promise.