Migrate from pytube3 to pytubefix#2
Open
tosiabunio wants to merge 2 commits into
Open
Conversation
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>
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
HTTP Error 410: Gone— YouTube removed theget_video_infoendpoint it relies onStreamQuery.all()with.first(), and pass an explicit filename with extension toStream.download()Test plan
python average-colours.pywith a real YouTube URL: video downloads tocache/test.mp4, frames are extracted and averaged, andoutput.pngis generated correctly🤖 Generated with Claude Code