How to block requests with Puppeteer

Puppeteer allows blocking any outgoing requests while loading the page. Whether you want to block ads, tracking scripts, or different types of resources, it is relatively easy to do with Puppeteer.

Posted March 9, 2022 (updated July 14, 2022) by Dmytro Krasun ‐ 4 min read

How to take a screenshot of the element with Puppeteer

Puppeteer allows you to automate everything you can do in the browser manually and even more. You can take screenshots of the entire page and the specific elements.

Posted February 1, 2022 (updated June 18, 2022) by Dmytro Krasun ‐ 1 min read

How to use proxy per page with Puppeteer

It is easy to use proxy globally for the puppeteer instance, but there is a trick to use proxy on a per-page basis.

Posted January 20, 2022 (updated July 10, 2022) by Dmytro Krasun ‐ 3 min read

How to take a screenshot with Puppeteer

Making screenshots of the websites with Puppeteer can be tricky. A lot of pitfalls wait for us. Let's examine Puppeteer on a set of "screenshotting" problems and tackle arising pitfalls.

Posted January 5, 2022 (updated July 28, 2022) by Dmytro Krasun ‐ 13 min read