From d1da5040e2fdeea561ca8faff8a6130aa771f109 Mon Sep 17 00:00:00 2001 From: anil-bd <210667061+anil-bd@users.noreply.github.com> Date: Tue, 24 Nov 2026 11:36:03 +0100 Subject: [PATCH] README: skip error rows in the explore and podcast examples The weekly live check failed on block 12: explore() returned a cancelled-crawl error row (no title) once the discovery hit limit, and the example called video.title.slice on it. The podcast example had the same gap. Both now skip error rows the way the search, hashtag and channel-videos examples already do. Co-Authored-By: Claude Opus 5.5 --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/README.md b/README.md index 739d20c..a323f41 100644 --- a/README.md +++ b/README.md @@ -342,6 +342,10 @@ import { podcast } from "@brightdata/youtube-scraper-node"; const playlist = "https://www.youtube.com/playlist?list=PLbnMTcZEga8QCKJvxsJVQV4uHD6bENdnP"; for (const episode of await podcast(playlist, { limit: 2 })) { + if (episode.error) { + console.log("error row:", episode.error); + continue; + } console.log(episode.date_posted.slice(0, 10), episode.views, "|", episode.title.slice(0, 60)); } ``` @@ -360,6 +364,10 @@ method for this one. import { explore } from "@brightdata/youtube-scraper-node"; for (const video of await explore("https://www.youtube.com/gaming/games", { limit: 2 })) { + if (video.error) { + console.log("error row:", video.error); + continue; + } console.log(video.live_status, video.views, "|", video.title.slice(0, 50)); } ```