Driver FixRecommendedSound, Wi-Fi or graphics acting up? Check drivers firstFind missing or outdated drivers fast.Check DriversOctober DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsPC HealthRecommendedCrashes, freezes, slowdowns? Check your PC nowSpot repairable issues before they interrupt work.Check PC×
Skip to content
World desk2 min

Puppeteer में Infinite Scroll पर Duplicate Screenshot Content कैसे ठीक करें

Infinite-scroll page पर full-page screenshot लेने से पहले सही scroll container पहचानें, capture की सीमा तय करें और जरूरी items के लोड होने की पुष्टि करें।
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Infinite-scroll पेज का screenshot लेने से पहले तय करें कि कौन-सा content शामिल करना है, कौन-सा element scroll करता है, और कौन-सा page-specific संकेत बताता है कि जरूरी items लोड हो चुके हैं। फिर सीमित scroll steps लें, उस संकेत का इंतजार करें, rendered items जांचें और उसके बाद ही page.screenshot({ fullPage: true }) चलाएं। fullPage पूरी मौजूदा page height capture करता है; यह endless feed के पूरा होने की शर्त नहीं है।

पहले तय करें: duplicate किस तरह दिख रहा है?

एक ही symptom के पीछे अलग स्थितियां हो सकती हैं: duplicate केवल full-page image में दिखना, scroll के बाद पुराने cards का दोबारा दिखना, lazy-loaded content का छूटना, या screenshot के दौरान viewport का reset होना। किसी खास URL, Puppeteer version और output के बिना एक सार्वभौमिक root cause बताना संभव नहीं है। इसलिए पहले उस व्यवहार को अलग करें जिसे आप reproduce कर सकते हैं।

As an Amazon Associate I earn from qualifying purchases.

  1. एक स्थिर viewport पर वही URL खोलें और Puppeteer तथा browser के versions, viewport और device scale factor नोट करें।
  2. सामान्य viewport screenshot और full-page screenshot की तुलना करें। यदि duplicate सिर्फ full-page capture में है, तो capture geometry या page layout की जांच करें; यदि सामान्य view में भी है, तो feed की rendering जांचें।
  3. पता करें कि feed को window scroll करता है या कोई nested panel। सही scroll container के बिना window.scrollTo() का उपयोग असरदार नहीं होगा।

Puppeteer के पुराने issue reports में full-page image duplication, lazy-loaded images या iframe के आसपास missing content, और screenshot के दौरान reload तथा viewport reset जैसे अलग मामले दर्ज हुए हैं। वे पुराने, अलग-अलग versions के case reports हैं; उनसे यह साबित नहीं होता कि मौजूदा Puppeteer में एक सामान्य bug है या आपके मामले का कारण वही है। (2017 report, 2018 report, 2022 report)

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

एक finite capture scope और stopping rule चुनें

Infinite feed का स्वाभाविक आखिरी बिंदु नहीं होता। पहले तय करें कि screenshot में क्या चाहिए: शुरुआती निश्चित संख्या में items, किसी खास item या timestamp तक की सामग्री, “end of results” marker तक, या अधिकतम scroll सीमा तक। फिर उसी लक्ष्य के अनुरूप जांचें कि पहले के items अब भी DOM में मौजूद हैं या नहीं।

#1 Best Overall
Philips 24 Inch Computer Monitor FHD 100Hz VA VESA Flicker-Free, 241V8LB
  • CRISP CLARITY: This 23.8″ Philips V line monitor delivers crisp Full HD 1920x1080 visuals. Enjoy movies, shows and videos with remarkable detail
  • INCREDIBLE CONTRAST: The VA panel produces brighter whites and deeper blacks. You get true-to-life images and more gradients with 16.7 million colors
  • THE PERFECT VIEW: The 178/178 degree extra wide viewing angle prevents the shifting of colors when viewed from an offset angle, so you always get consistent colors
  • WORK SEAMLESSLY: This sleek monitor is virtually bezel-free on three sides, so the screen looks even bigger for the viewer. This minimalistic design also allows for seamless multi-monitor setups that enhance your workflow and boost productivity
  • A BETTER READING EXPERIENCE: For busy office workers, EasyRead mode provides a more paper-like experience for when viewing lengthy documents
  • अगर सभी जरूरी rows एक साथ rendered रहती हैं, तो readiness condition पूरी होने के बाद एक full-page screenshot आजमाया जा सकता है।
  • अगर feed आगे बढ़ने पर पुराने rows हटाती या recycle करती है, तो एक विशाल full-page image में पूरे इतिहास की अपेक्षा न करें। आवश्यक viewport segments अलग-अलग capture करें या, यदि लक्ष्य पूरा dataset है, application का export इस्तेमाल करें।
  • अगर केवल एक content panel चाहिए, तो पूरी page के बजाय उस element का screenshot लें।

यह जांच target page पर करनी होगी; उपलब्ध जानकारी यह स्थापित नहीं करती कि आपका पेज पुराने rows हटाता है या नहीं। Puppeteer का fullPage: true capture का आकार तय करता है, feed की सीमा या completeness नहीं। मौजूदा Puppeteer ScreenshotOptions reference (25.12.0) में fullPage का default false है।

Measured scrolling और page-specific readiness condition इस्तेमाल करें

एक बार में बहुत नीचे jump करने के बजाय viewport के हिस्से जितने मापे हुए steps लें। हर step के बाद उस वास्तविक संकेत का इंतजार करें जो इस साइट पर बताता है कि अगला content आ गया है: item count में बढ़ोतरी, अपेक्षित item की मौजूदगी, loading indicator का हटना, या end marker। कोई generic timeout या network-idle स्थिति अपने-आप यह साबित नहीं करती कि feed में और content नहीं है।

Rank #2
Philips 22 Inch Computer Monitor FHD 100Hz VA VESA Flicker-Free, 221V8LB
  • CRISP CLARITY: This 22 inch class (21.5″ viewable) Philips V line monitor delivers crisp Full HD 1920x1080 visuals. Enjoy movies, shows and videos with remarkable detail
  • 100HZ FAST REFRESH RATE: 100Hz brings your favorite movies and video games to life. Stream, binge, and play effortlessly
  • SMOOTH ACTION WITH ADAPTIVE-SYNC: Adaptive-Sync technology ensures fluid action sequences and rapid response time. Every frame will be rendered smoothly with crystal clarity and without stutter
  • INCREDIBLE CONTRAST: The VA panel produces brighter whites and deeper blacks. You get true-to-life images and more gradients with 16.7 million colors
  • THE PERFECT VIEW: The 178/178 degree extra wide viewing angle prevents the shifting of colors when viewed from an offset angle, so you always get consistent colors

Puppeteer के interactions guide में Locator के साथ scroll और wait करने के तरीके हैं; Page API में waitForFunction और waitForNetworkIdle उपलब्ध हैं। सही condition पेज के DOM और loading व्यवहार के अनुसार लिखें। नीचे के उदाहरण में selectors placeholders हैं—उन्हें अपने पेज के वास्तविक selectors और अपेक्षित item count से बदलें।

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
const targetCount = 40;
const itemSelector = '.feed-item';
const scrollSelector = '.feed-scroll-container'; // window scroll हो तो अलग तरीका अपनाएं

for (let attempt = 0; attempt < 20; attempt++) {
  const count = await page.locator(itemSelector).count();
  if (count >= targetCount) break;

  await page.locator(scrollSelector).evaluate(el => {
    el.scrollTop += Math.floor(el.clientHeight * 0.8);
  });

  await page.waitForFunction(
    ({ selector, previous }) =>
      document.querySelectorAll(selector).length > previous,
    { timeout: 5000 },
    { selector: itemSelector, previous: count }
  ).catch(() => {});
}

const loaded = await page.locator(itemSelector).count();
if (loaded < targetCount) {
  throw new Error(`Expected at least ${targetCount} items; found ${loaded}`);
}

await page.screenshot({ path: 'feed.png', fullPage: true });

यह नमूना nested scroll container और append होते items मानता है। यदि scroll window पर है, तो window को scroll करें; यदि साइट पहले से मौजूद items को replace करती है, तो केवल DOM count बढ़ने की condition गलत होगी—अपेक्षित item, cursor, loading state या अन्य page-specific signal जांचें। केवल timeout बढ़ाना ऐसी गलत condition को ठीक नहीं करेगा।

Rank #3
Sale
Dell 24 Monitor - SE2426H - 23.8-inch FHD (1920x1080) 144Hz 1ms Display, in-Plane Switching (IPS) Technology, AMD FreeSync™, TÜV 3-Star 2X HDMI, Tilt
  • Clear visuals. Fluid motion: A 144Hz refresh rate and 1ms MPRT deliver smooth, tear‑free motion across work, gaming, and streaming for clearer, more fluid viewing.
  • Eye comfort: TÜV Rheinland 3‑star* certification reduces harmful blue light while preserving stunning color quality without compromise. *TÜV Rheinland 3-star eye comfort certification.
  • Wide viewing angle: Get consistent views across a wide 178° /178° viewing angle.
  • In-Plane Switching (IPS): See excellent color accuracy and consistency across wide viewing angles with In-plane Switching (IPS) technology.
  • Ultra-thin bezels: Maximize your viewing experience with thin bezels.

Screenshot से पहले क्या verify करें

  • सही scroll element वास्तव में आगे बढ़ा है।
  • अपेक्षित items rendered हैं और कोई loader अभी काम नहीं कर रहा।
  • Feed ने पहले के जरूरी items को हटाया या recycle नहीं किया।
  • Screenshot का scope तय है: पूरी वर्तमान document height, एक element, या कई viewport segments।
  • Output के top, seams, repeated cards और ending point को अपेक्षित content से मिलाया है।

Puppeteer का screenshot guide Page.screenshot() और किसी खास element के लिए ElementHandle.screenshot() दिखाता है। यदि लक्ष्य सिर्फ panel है, तो element capture full-page capture से अधिक उपयुक्त हो सकता है।

आम समस्याएं और उनके उपाय

लक्षण संभावित कारण जांच या उपाय
Scroll के बाद item count नहीं बदलता गलत scroll container, feed ने नया content नहीं लोड किया, या condition गलत है। Window और nested panel दोनों की scroll position जांचें; वास्तविक loader या expected item signal का इंतजार करें।
एक full-page image में पुराने और नए cards duplicate हैं Page layout, capture geometry या feed rendering में समस्या हो सकती है; symptom अकेले कारण नहीं बताता। सामान्य viewport screenshot से तुलना करें, DOM में card instances देखें और Puppeteer/browser versions दर्ज करें।
नीचे के cards या lazy images गायब हैं संबंधित content capture से पहले render या load नहीं हुआ। सीमित steps से scroll करें, अपेक्षित items/images के लिए page-specific संकेत का इंतजार करें, फिर capture करें।
Screenshot के बाद viewport या page state बदलती है ऐसा व्यवहार एक पुराने Puppeteer issue में report हुआ था, लेकिन इससे मौजूदा environment का कारण तय नहीं होता। छोटे reproduction में version, viewport और screenshot mode दर्ज करें; वर्तमान output की जांच करें और पुराने report को सार्वभौमिक diagnosis न मानें।
लंबा timeout देने पर भी duplicate या missing content रहता है समस्या readiness के समय की नहीं, बल्कि गलत scroll target, गलत condition, recycled rows या capture scope की हो सकती है। पहले निर्धारित करें कि कौन-सा element scroll करता है और जरूरी content DOM में एक साथ मौजूद रहता है या नहीं।

Or skip the browser setup

ScreenshotNeo एक GET request से URL का PNG, JPEG, WebP या PDF capture करने वाला screenshot API और MCP server है। यह Puppeteer के आपके page-specific scroll logic का स्वतः विकल्प नहीं है—यदि feed की सीमित संख्या में items चाहिए, तो scope और readiness फिर भी तय करें। लेकिन सामान्य URL capture के लिए browser setup छोड़ना हो तो यह विकल्प है।

Rank #4
Sale
Samsung 27" Essential S3 (S36GD) Series FHD 1800R Curved Computer Monitor
  • CURVED FOR ENHANCED ENGAGEMENT: An immersive viewing experience with a curved monitor that wraps more closely around your field of vision; It creates a wider view, enhancing depth perception and minimizing peripheral distraction
  • SMOOTH PERFORMANCE FOR SEAMLESS CONTENT: Stay in the action when playing games, watching videos, or working on creative projects; The 100Hz refresh rate reduces lag and motion blur so you don't miss a thing in fast-paced moments¹
  • MORE GAMING POWER: Gain the edge with optimizable game settings; Color and image contrast can be adjusted to see scenes more vividly and spot enemies hiding in the dark; Game Mode adjusts any game to fill the screen so you can view every detail²
  • KEEP IT EASY ON THE EYES: Care for your eyes and stay comfortable, even during long sessions; Advanced eye comfort technology certified by TÜV reduces eye strain by minimizing blue light and reducing irritating screen flicker²
  • INCREASED VERSATILITY: Connect to more; Plug devices straight into your monitor for increased flexibility, making your computing environment even more convenient

API key के साथ यह cURL request चलाएं; API documentation में parameters देखें।

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
curl -G "https://api.screenshotneo.com/v1/shot" -d access_key=YOUR_API_KEY --data-urlencode url=https://stripe.com -o shot.webp

ScreenshotNeo capture से पहले cookie/consent banners स्वीकार करता है और 60 से अधिक ज्ञात consent platforms, newsletter popups तथा chat widgets हटाता है; ये चरण बंद किए जा सकते हैं। Bot checks/CAPTCHAs, blank pages, timeouts, failed loads और cache hits के लिए शुल्क नहीं लगता; response में X-Page-Verdict और X-Billed headers बताते हैं कि क्या हुआ। इसका MCP server AI agents को take_screenshot, get_page_info और capture_pdf tools देता है। Free plan में बिना card के 1,000 shots प्रति माह हैं; paid plans $5 में 3,000 से शुरू होते हैं। मुफ्त account बनाएं।

Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

अक्सर पूछे जाने वाले प्रश्न

क्या हर infinite-scroll page के लिए एक सही scroll दूरी है?

नहीं। Step का आकार viewport और page के loading व्यवहार पर निर्भर है। इतना scroll करें कि अगला हिस्सा trigger हो, लेकिन हर बार अपने चुने हुए readiness signal की पुष्टि करें।

Best Value
Sale
Sceptre New 22-Inch Gaming Monitor, FHD 1080p, Up to 144Hz, HDMI, DisplayPort, Built-in Speakers, Machine Black (E225W-FW144 Series, 2026)
  • 【INTEGRATED SPEAKERS】Whether you're at work or in the midst of an intense gaming session, our built-in speakers provide rich and seamless audio, all while keeping your desk clutter-free.
  • 【EASY ON THE EYES】 Protect your eyes and enhance your comfort with Blue-Light Shift technology. This feature reduces harmful blue light emissions from your screen, helping to alleviate eye strain during long hours of use and promoting healthier viewing habits.
  • 【WIDEN YOUR PERSPECTIVE】Our sleek minimal bezel design ensures undivided attention. The nearly bezel-free display seamlessly connects in a dual monitor arrangement, delivering an unobstructed view that lets you focus on more at once, completely distraction-free.

क्या एक full-page screenshot पूरे infinite feed का रिकॉर्ड है?

नहीं। यह उस समय मौजूद document की capture geometry है; यह unbounded feed का पूरा dataset होने की गारंटी नहीं देता।

कौन-सी जानकारी किसी खास मामले का diagnosis करने में मदद करेगी?

Target URL, Puppeteer और browser versions, viewport, scroll container, सामान्य तथा full-page screenshots में अंतर, और duplicate content का उदाहरण साझा करें। इनके बिना निश्चित root cause बताना संभव नहीं है।

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Leave a Reply

Your email address will not be published. Required fields are marked *

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

More from the Wire

  1. World desk4 min
    How to Spot an AI Voice Scam Before Sending MoneyDon’t rely on how a caller sounds. Pause, call back through a known number, and verify the emergency with another trusted person before sending money.
  2. Mountain View desk4 min
    Google’s SynthID Detector: How to Check AI-Generated Images, Video and AudioGoogle’s SynthID Detector looks for an embedded watermark in supported images, video and audio. Here is what its results do—and do not—show.
  3. Redmond desk20 min
    How to create a link to File or Folder in Windows 11Windows 11 gives you several ways to point to a file or folder without moving or duplicating it. You can create a desktop shortcut,…
Recommended PC Tool
Recommended PC Tool
Windows Errors? Fix Them Before They SpreadFree repair scan
Outdated Drivers Are Slowing You DownFree scan - exact matches

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.