Skip to content

Rosember10/scrapingNodejs

Repository files navigation

Scraping SAQ with Puppeteer

NodeJS

Node.js script that searches the SAQ page and returns all existing bottles of wine.

scraping

If you want to start from scratch , follow these steps :

Installation

Install npm

Run de command

npm init -y

Inicialicer to create a pachage.json

  • create index.js file

Install modules

npm i puppeteer

npm install node-fetch

Configure package.json

  • Go to package.json and add "type": "module", to be able to import modules without require

Clone

If you want to clone the project , follow these steps :

Make sure you have the latest version of node js installed (https://nodejs.org/en)

1. Cloning the repository

First, clone the repository on your local machine. Open a terminal and run the following command, replacing url-of-repository with the URL of the repository you want to clone:

execute in terminal:

git clone project_url

2. Change directory to the project

Once cloned, change the directory to the project by running the following command:

cd project_name

3. Installing dependencies

Install the project dependencies using NPM.

npm install

4. Execute script

Run the command

node scrapingderniere.js

About

Node.js script that searches the SAQ page and returns all existing bottles of wine.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published