In this post, we’ll learn to scrape web pages using browser automation with JavaScript. We’ll be using puppeteer for this. Puppeteer is a Node library API that allows us to control headless Chrome. Headless Chrome is a way to run the Chrome Browser without actually running Chrome. How to proceed Generally, web scraping is divided into two parts: Fetching data by making an HTTP request Extracting important data by parsing the HTML DOM Libraries & Tools Puppeteer Nodejs What we are going to scrape We are going to Scrape Book price and title from this website . Which is a fake bookstore specifically set up to help people practice scraping. Setup Our setup is pretty simple. Just create a folder and install puppeteer. For creating a folder and installing libraries type below given commands. I am assuming that you have already installed Node.js. mkdir scraper cd scraper npm i puppeteer — save Now, create a file inside that folder by any name you li