Puppeteer Scrape Webpage

There are several ways to interact with a page and later scrape its results with Puppeteer. In my example, I’ll be querying Google to check for the price of Bitcoin.

Javascript method

Copy the contents below and paste it into the script. This method uses Javascript to loop through the elements by tag name.

const puppeteer = require('puppeteer');
async…