Skip to content

fix: update fetch_transcript.py for youtube-transcript-api v1.x - #4455

Merged
teknium1 merged 1 commit into
NousResearch:mainfrom
el-analista:fix/youtube-transcript-api-v1
Apr 1, 2026
Merged

fix: update fetch_transcript.py for youtube-transcript-api v1.x#4455
teknium1 merged 1 commit into
NousResearch:mainfrom
el-analista:fix/youtube-transcript-api-v1

Conversation

@el-analista

Copy link
Copy Markdown
Contributor

Summary

  • The youtube-transcript-api library removed the static get_transcript() method in v1.0
  • Migrates fetch_transcript.py to the new instance-based fetch() API
  • Normalizes FetchedTranscriptSnippet objects back to dicts so the rest of the script works unchanged

Test plan

  • Verified --text-only --timestamps mode returns timestamped transcript
  • Verified JSON output mode returns correct segment count and duration
  • Tested against real YouTube video (767 segments, 26:20 duration)

The library removed the static get_transcript() method in v1.0.
Migrate to the new instance-based fetch() API and normalize
FetchedTranscriptSnippet objects back to dicts for compatibility
with the rest of the script.
@teknium1
teknium1 merged commit 3400098 into NousResearch:main Apr 1, 2026
@el-analista
el-analista deleted the fix/youtube-transcript-api-v1 branch May 4, 2026 23:48
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.

2 participants