Skip to main content

No project description provided

Project description

ytkit 📺

With ytkit, you can fetch subtitles from entire YouTube channels, playlists, and search results in just a few lines of code! Perfect for RAG, AI applications, and content analysis.

Installation

Install via pip:

pip install ytkit

Upgrade to the latest version:

pip install --upgrade ytkit

Requirements

  • Python 3.7+

Usage

GetChannelSubtitle

Fetch subtitles from all videos in a YouTube channel.

from ytkit import GetChannelSubtitle

get_channel_subtitle = GetChannelSubtitle()
result = get_channel_subtitle.get(
    channel_username="TEDx",
    limit=2,
    language="en",
    save_to_disk="channel_data"
)

GetPlaylistSubtitle

Fetch subtitles from all videos in a YouTube playlist.

from ytkit import GetPlaylistSubtitle

get_playlist_subtitle = GetPlaylistSubtitle()
result = get_playlist_subtitle.get(
    playlist_id="PL8dPuuaLjXtNamNKW5qlS-nKgA0on7Qze",
    limit=2,
    language="en",
    save_to_disk="data"
)

GetSearchSubtitle

Fetch subtitles for videos based on a search query.

from ytkit import GetSearchSubtitle

get_search_subtitle = GetSearchSubtitle()
result = get_search_subtitle.get(
    query="python tutorial",
    limit=2,
    language="en",
    save_to_disk="test"
)

GetVideoSubtitle

Fetch subtitles for specific YouTube videos.

from ytkit import GetVideoSubtitle

get_video_subtitle = GetVideoSubtitle()
result = get_video_subtitle.get(
    video_ids=["_uQrJ0TkZlc"],
    language="en",
    save_to_disk="subtitles"
)

🚀 ytkit simplifies subtitle extraction for YouTube videos!

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ytkit-1.0.0.tar.gz (15.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ytkit-1.0.0-py3-none-any.whl (31.1 kB view details)

Uploaded Python 3

File details

Details for the file ytkit-1.0.0.tar.gz.

File metadata

  • Download URL: ytkit-1.0.0.tar.gz
  • Upload date:
  • Size: 15.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.0.0 CPython/3.12.4 Darwin/24.3.0

File hashes

Hashes for ytkit-1.0.0.tar.gz
Algorithm Hash digest
SHA256 71529f7e2cdeb5edf4b327e7750e3bedf0355148f0f67c6e6275d816312b0774
MD5 30a598db6ee90901edaa07e7c1818c4b
BLAKE2b-256 cee83b1c21126f6dcdb893d28d82d8a9c3ac5b508aad8f84d4ce7d6504f7843a

See more details on using hashes here.

File details

Details for the file ytkit-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: ytkit-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 31.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.0.0 CPython/3.12.4 Darwin/24.3.0

File hashes

Hashes for ytkit-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7616d509f0e0248a18e4efd41e826ac6841e1d6d07ff13923fe99f8ce0795977
MD5 fca00f0b23e54fea93e3ed92c5a66290
BLAKE2b-256 3c29946ebf2fc60567fc09fa2211dbb162359366e1b8345c6fe5fec7bfb6c736

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page