<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Hermes API</title>
    <description>The latest articles on DEV Community by Hermes API (@hermes_api_6a9fd670ce7450).</description>
    <link>https://dev.to/hermes_api_6a9fd670ce7450</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3999652%2F1b15c4b9-2e40-422e-98cb-22a5f99b4c47.png</url>
      <title>DEV Community: Hermes API</title>
      <link>https://dev.to/hermes_api_6a9fd670ce7450</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/hermes_api_6a9fd670ce7450"/>
    <language>en</language>
    <item>
      <title>I got frustrated with Puppeteer's lazy-loading and bot-blocks, so I built my own screenshot API</title>
      <dc:creator>Hermes API</dc:creator>
      <pubDate>Wed, 24 Jun 2026 02:26:31 +0000</pubDate>
      <link>https://dev.to/hermes_api_6a9fd670ce7450/i-got-frustrated-with-puppeteers-lazy-loading-and-bot-blocks-so-i-built-my-own-screenshot-api-5fdm</link>
      <guid>https://dev.to/hermes_api_6a9fd670ce7450/i-got-frustrated-with-puppeteers-lazy-loading-and-bot-blocks-so-i-built-my-own-screenshot-api-5fdm</guid>
      <description>&lt;h2&gt;
  
  
  The Problem
&lt;/h2&gt;

&lt;p&gt;Every time I tried to take full-page screenshots or generate clean PDFs using Puppeteer, I ran into the same frustrating issues:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;🖼️ &lt;strong&gt;Blank images&lt;/strong&gt; from lazy-loading (data-src, data-original attributes)&lt;/li&gt;
&lt;li&gt;🍪 &lt;strong&gt;Cookie banners&lt;/strong&gt; blocking half the screen&lt;/li&gt;
&lt;li&gt;🤖 &lt;strong&gt;Cloudflare blocking&lt;/strong&gt; my headless browser instantly&lt;/li&gt;
&lt;li&gt;📄 &lt;strong&gt;PDFs with ugly page breaks&lt;/strong&gt; cutting images in half&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  What I Built
&lt;/h2&gt;

&lt;p&gt;I created &lt;strong&gt;Hermes API&lt;/strong&gt; — a Puppeteer wrapper that solves all of these problems automatically.&lt;/p&gt;

&lt;h3&gt;
  
  
  Key features:
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;✅ &lt;strong&gt;Smart Lazy-Load Agent:&lt;/strong&gt; Uses a MutationObserver to intercept &lt;code&gt;data-src&lt;/code&gt;, &lt;code&gt;data-lazy-src&lt;/code&gt;, and &lt;code&gt;data-original&lt;/code&gt; attributes and force-loads every image before taking the screenshot&lt;/li&gt;
&lt;li&gt;✅ &lt;strong&gt;Stealth Plugin + Bot Evasion:&lt;/strong&gt; Injects real browser fingerprints to bypass Cloudflare and similar protections&lt;/li&gt;
&lt;li&gt;✅ &lt;strong&gt;Auto Ad/Cookie Blocker:&lt;/strong&gt; Powered by Ghostery to remove popups automatically&lt;/li&gt;
&lt;li&gt;✅ &lt;strong&gt;Single-Page PDF Export:&lt;/strong&gt; Generates PDFs without ugly mid-image page breaks&lt;/li&gt;
&lt;li&gt;✅ &lt;strong&gt;QA Agent:&lt;/strong&gt; Analyzes the page and gives it a score from 0 to 100, flagging broken images, bot blocks, and empty pages&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Try It
&lt;/h2&gt;

&lt;p&gt;I built a public dashboard so anyone can test it without writing code:&lt;/p&gt;

&lt;p&gt;🔗 &lt;strong&gt;&lt;a href="https://hermes-api-pro.onrender.com/" rel="noopener noreferrer"&gt;https://hermes-api-pro.onrender.com/&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;⚠️ There's a strict rate limit (3 requests per 10 min per IP) on the public dashboard to keep my free server alive. If you hit it and want a real API Key, there's a contact button right on the page.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  Feedback Welcome!
&lt;/h2&gt;

&lt;p&gt;This is an MVP. Would love to hear if you manage to find a URL that breaks it, or any suggestions on what features to add next!&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fmqhn2zzrrxbz0api0bxz.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fmqhn2zzrrxbz0api0bxz.png" alt=" " width="795" height="782"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>puppeteer</category>
      <category>node</category>
      <category>webdev</category>
      <category>api</category>
    </item>
  </channel>
</rss>
