Visit the Github Page of this project at hay-espacio-en-el-taco.github.io/dbs-scraper.
First you will need to download and install VSCode (v1.33.1 or better) & Docker
Run Scraper
in the dropdown menu next to run button.Run
button (F5)."Terminal" > "Run Task..."
and run the next tasks:
Get cards.json file into web-page folder
task.Run react app (detached)
task.http://localhost:3000/
in your browser.Add the new urls in DBS_DATA_URLS
array located at ./scraper/src/index.js file.
Download & install Docker
docker build -t dbs-scraper .
docker run --rm --name scraper -p 80:3000 dbs-scraper
cards.json
file from the releases section of this repocards.json
file into the /web-page/src
folderdocker run -it --rm --name scraper -v ${PWD}/web-page/src:/home/node/app/web-page/src -p 80:3000 dbs-scraper
(note that we are mounting a volume)