Simples crawler to fetch every alamanax bonuses days and serve into a file
Install the project
npm i
Run the command to fetch the data
npm run fetch
By default it will create a alamax.json file under the output
folder (not versioned).
If you want to create a csv file, pass the csv flag to the script like so.
npm run fetch -- csv
- Setup the project
- Fetch the alamanax day and extract the info (Formated,date, bonus type and description)
- Create fn to iterate over the year
- Fetch every day and save to a single array
- Check for data in json before fetching
- Create option so save file as csv
- Save to csv