There is no open API for the Reinsaat webpage. Therefore, we need to scrape the data from the webpage, which can be found here.
- Install dependencies
npm install && mkdir -p data
- Create .env.local file from .env.example and fill in the required values:
cp .env.example .env.local
- Fetch the English and German data
The scraper scrapes the data from the Reinsaat webpage and stores it in csv
format in the data
directory:
reinsaatRawDataEN.csv
: This file contains the raw data scraped from the english version of the Reinsaat webpage.reinsaatRawDataDE.csv
: This file contains the raw data scraped from the german version of the Reinsaat webpage.
This can be done with the following command:
npm run fetch:reinsaat
- Merge the scraped data
The scraper also merges the scraped data of both the English and German version of the Reinsaat webpage and stores it in csv
format in the data
directory:
reinsaatRawData.csv
: This file contains the merged data
This can be done with the following command:
npm run merge:reinsaat