Skip to content

[SCR-577] API parity: youtube-subtitles command, google --pages and --search-type ads - #31

Open
sahilsunny wants to merge 1 commit into
mainfrom
feat/api-parity-1.6.0/SCR-577
Open

[SCR-577] API parity: youtube-subtitles command, google --pages and --search-type ads#31
sahilsunny wants to merge 1 commit into
mainfrom
feat/api-parity-1.6.0/SCR-577

Conversation

@sahilsunny

@sahilsunny sahilsunny commented Aug 3, 2026

Copy link
Copy Markdown
Collaborator

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

  • New youtube-subtitles command/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, mirroring youtube-metadata.
  • google --pages — fetch up to 10 consecutive result pages starting at --page in one combined response; bounds validated client-side.
  • google --search-type ads — classic-result structure optimized for paid-ad visibility.
  • Version 1.5.2 → 1.6.0 across all manifests; docs and skill references updated.

Verification

  • Live API: subtitles returned real captions; --pages 2 combined two SERP pages; ads returned 200 JSON; out-of-range --pages rejected before any request.
  • 853 unit tests green; ruff + ty clean. (Known exclusion: test_scroll_up_reaches_content_above_wrapped_line, a pre-existing flake that fails identically on main.)
  • pipx install smoke-tested in both normal and REPL mode — no regressions.

… 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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant