Skip to content

v4.0.0

Choose a tag to compare

@SoAp9035 SoAp9035 released this 14 Dec 13:17
· 9 commits to main since this release
ec75d7a

Changes

This version has breaking changes. You need to update your code.

Method names changed:

  • data() is now fetch_metadata()
  • get_transcript() is now fetch_transcript()
  • get_video_data_and_transcript() is now fetch_all()

New Features

  • Added VideoMetadata model class for structured video data
  • Added new exceptions: IpBlocked and RequestBlocked
  • Added new example files to help you get started
  • Better video ID extraction from URLs
  • Improved error messages

Project Changes

  • Switched build system from setuptools to uv
  • Moved package to src-layout structure
  • Removed requirements.txt (using pyproject.toml now)
  • Dependencies now use minimum versions instead of pinned versions
  • Added Python 3.14 support

How to Update Your Code

Before:

yt = YouTubeAPI()
metadata = yt.data(video_url)
transcript = yt.get_transcript(video_url)

After:

yt = YouTubeAPI()
metadata = yt.fetch_metadata(video_url)  # Or video_id
transcript = yt.fetch_transcript(video_url)

Install

pip install simple-yt-api==4.0.0