Repository navigation
Conversation
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 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
The weekly live check failed on block 12, "Scrape the YouTube explore and gaming pages":
explore()returns raw rows. When a discovery reacheslimit, crawls still running come back as error rows (Crawl aborted on job cancel, seeCANCELLEDinsrc/scrape.js) with notitle. The example calledvideo.title.sliceon every row, so it crashed. The podcast example (block 11) has the same gap and passed this week only because no error row came back.Fix
Both examples now skip error rows with the same
if (video.error) { ...; continue; }guard the search, hashtag and channel-videos examples already use. No library code changes.Verified
Ran both README blocks against a stubbed API returning one record plus one
Crawl aborted on job cancelrow:error row: Crawl aborted on job cancel.npm run lintclean,npm test18/18 pass.The next Monday live check runs the blocks against the real API.
🤖 Generated with Claude Code