/web-scraping-with-js

Web scraping extracts data from websites. In JavaScript, jsdom and Puppeteer are powerful tools for this task. jsdom is a lightweight DOM implementation that lets user manipulate and query static pages. Puppeteer is a Node.js library for controlling headless Chrome/Chromium, ideal for dynamic websites. It can simulate user interactions and take ss.

Primary LanguageJavaScript

Web Scraping Project

This project demonstrates web scraping using jsdom and Puppeteer. Follow the instructions below to set up and run the project.

Installation

First, ensure you have Yarn installed on your machine. Then, run the following command to install the necessary packages:

yarn install

Running the Project

This project is set to run with Bun runtime for improved performance so, if you don't want to use bun you can simple go to the package.json and modify start script like that:

# "start": "bun index.js",
"start": "node index.js"

To start the project, use the following command:

yarn start