Skip to content

Migrate from pytube3 to pytubefix#2

Open
tosiabunio wants to merge 2 commits into
ShantnuS:masterfrom
tosiabunio:migrate-to-pytubefix
Open

Migrate from pytube3 to pytubefix#2
tosiabunio wants to merge 2 commits into
ShantnuS:masterfrom
tosiabunio:migrate-to-pytubefix

Conversation

@tosiabunio

Copy link
Copy Markdown

Summary

  • pytube3 is unmaintained and the script fails at startup with HTTP Error 410: Gone — YouTube removed the get_video_info endpoint it relies on
  • Switch to pytubefix, a maintained drop-in fork: update the import, replace the removed StreamQuery.all() with .first(), and pass an explicit filename with extension to Stream.download()
  • Add CLAUDE.md with repo guidance for Claude Code

Test plan

  • Ran python average-colours.py with a real YouTube URL: video downloads to cache/test.mp4, frames are extracted and averaged, and output.png is generated correctly

🤖 Generated with Claude Code

tosiabunio and others added 2 commits July 2, 2026 12:36
pytube3 is unmaintained and fails with HTTP 410 because YouTube removed
the get_video_info endpoint it relies on. Switch to pytubefix, a
maintained drop-in fork, and update the stream selection and download
calls to its API. Add CLAUDE.md with repo guidance.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
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