🚀 We are hiring! See open positions

Puppeteer Knowledgebase

Puppeteer is a powerful Node.js library that provides a high-level API to control headless Chrome or Chromium browsers. It is widely used for web scraping, web automation, and testing web applications. Puppeteer allows developers to interact with web pages, take screenshots, generate PDFs, and extract data from websites.

In web scraping, Puppeteer is restricted to Javascript language (NodeJS) and while it can be limiting it's still a very powerful tool.

See below for more on Puppeteer in the context of web scraping and data programming 👇

How to take screenshots in NodeJS?

Learn how to screenshot in Node.js using Playwright & Puppeteer. Includes installation, concepts, and customization tips.

#screenshots
#headless-browser
#puppeteer
#playwright
#nodejs

How to handle popup dialogs in Puppeteer?

To click on a popup dialog in Puppeteer the dialog even can be captured and interacted with using page.on("dialog") method. Here's how to do it.

#puppeteer

How to click on cookie popups and modal alerts in Puppeteer?

To handle modal popups like cookie consents in Puppeteer the popup can be closed through a button click or removed entirely. Here's how.

#puppeteer

How to scroll to the bottom of the page with Puppeteer?

To scrape to the very bottom of the page with Puppeteer the javascript evaluation feature can be used within a while loop. Here's how.

#puppeteer

Getting started with Puppeteer Stealth

Puppeteer-stealth is a popular plugin for Puppeteer browser automation library. It patches browsers to be less detectible. Here's how to get started.

#puppeteer

How to capture background requests and responses in Puppeteer?

To capture background requests and response in Puppeteer we can use page.on() method to intercept every request/response. Here's how.

#puppeteer

How to load local files in Puppeteer?

To load local files in Puppeteer the file:// URL protocol can be used as the URL protocol prefix which will load file from the file path URI

#puppeteer
#headless-browser

How to take a screenshot with Puppeteer?

Learn how to take Puppeteer screenshots in NodeJS. You will also learn how to customize it through resolution and viewport customization.

#puppeteer
#headless-browser

Articles Related to Puppeteer