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!
Metadata
Release files for ytkit 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| ytkit-1.0.0.tar.gz | 15.5 kB | Without provenance | Details for ytkit-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ytkit-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for ytkit-1.0.0-py3-none-any.whl |
Total release size: 46.6 kB
Release files / ytkit-1.0.0.tar.gz
| Download URL | ytkit-1.0.0.tar.gz |
|---|---|
| Size | 15.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
71529f7e2cdeb5edf4b327e7750e3bedf0355148f0f67c6e6275d816312b0774
|
|
BLAKE2b-256 checksum How to use checksums |
cee83b1c21126f6dcdb893d28d82d8a9c3ac5b508aad8f84d4ce7d6504f7843a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.0.0 CPython/3.12.4 Darwin/24.3.0
|
Release files / ytkit-1.0.0-py3-none-any.whl
| Download URL | ytkit-1.0.0-py3-none-any.whl |
|---|---|
| Size | 31.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7616d509f0e0248a18e4efd41e826ac6841e1d6d07ff13923fe99f8ce0795977
|
|
BLAKE2b-256 checksum How to use checksums |
3c29946ebf2fc60567fc09fa2211dbb162359366e1b8345c6fe5fec7bfb6c736
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.0.0 CPython/3.12.4 Darwin/24.3.0
|
Security for ytkit 1.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.