Skip to content

Latest commit

 

History

History
16 lines (10 loc) · 627 Bytes

README.md

File metadata and controls

16 lines (10 loc) · 627 Bytes

Building a Scraper with Node

Scraping static site with axios and cheerio

Scraping dynamic site with puppeteer and cheerio

  • Axios: Promise-based HTTP client for Node.js and the browser
  • Cheerio: jQuery implementation for Node.js. Cheerio makes it easy to select, edit, and view DOM elements.
  • Puppeteer: A Node.js library for controlling Google Chrome or Chromium.

Prequisite

NodeJs version 8+ must be installed

Run npm install and paste the url you want to scrap in const url

For execting static scraper run node scraper.js and for executing dynamic scraper run node puppeteer.js from console