[SCR-577] API parity: youtube-subtitles command, google --pages and --search-type ads - #31
Open
sahilsunny wants to merge 1 commit into
Open
[SCR-577] API parity: youtube-subtitles command, google --pages and --search-type ads#31sahilsunny wants to merge 1 commit into
sahilsunny wants to merge 1 commit into
Conversation
… ads (SCR-577) API-parity sweep against scrapingbee.com/llms.txt found three gaps: - youtube-subtitles: new command for /api/v1/youtube/subtitles (video ID or URL, --language, --subtitle-origin auto-generated/uploader-provided, batch via --input-file, 5 credits). Registered in CLI, REPL Media group, --scraping-config router, and ESTIMATED_CREDITS. - google --pages: fetch up to 10 consecutive pages starting at --page in one combined response; validated via new _validate_pages() helper (1..10). - google --search-type ads: classic-result structure optimized for paid-ad visibility. Version bumped to 1.6.0 (unreleased section holds features: Auto-Mode + these additions). Docs updated: CHANGELOG, README, AGENTS.md, canonical .agents/skills tree (new reference/youtube/subtitles.md, google overview) synced to all mirrors. Verified live against the API: subtitles returned real captions, --pages 2 combined two SERP pages, ads returned 200 JSON; bounds rejected locally. 853 unit tests green (new client param-forwarding, validator, and help tests); ruff + ty clean. Installed via pipx and smoke-tested normal mode and REPL (help, completion, live call, session-default warnings) with no regressions.
sahilsunny
requested review from
NBens,
dbulbukas-sbee,
kirby81,
kostas-jakeliunas-sb and
marius-nemeiksis-sbee
August 3, 2026 11:29
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.
Summary
Adds three missing API features to the CLI and bumps the unreleased version to 1.6.0 (the unreleased section holds features — Auto-Mode from #26 plus these — so semver calls for a minor bump).
Changes
youtube-subtitlescommand —/api/v1/youtube/subtitles(5 credits): accepts a video ID or full YouTube URL,--language,--subtitle-origin(auto-generated/uploader-provided),--tag, and batch via--input-file, mirroringyoutube-metadata.google --pages— fetch up to 10 consecutive result pages starting at--pagein one combined response; bounds validated client-side.google --search-type ads— classic-result structure optimized for paid-ad visibility.Verification
--pages 2combined two SERP pages;adsreturned 200 JSON; out-of-range--pagesrejected before any request.test_scroll_up_reaches_content_above_wrapped_line, a pre-existing flake that fails identically onmain.)