Metadata-Version: 2.3
Name: ytkit
Version: 1.0.0
Summary: 
Author: Rahul Anand
Author-email: rahulanand1103@gmail.com
Requires-Python: >=3.12,<3.14
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Requires-Dist: pydantic (>=2.10.4,<3.0.0)
Requires-Dist: scrapetube (>=2.5.1,<3.0.0)
Requires-Dist: tqdm (>=4.67.1,<5.0.0)
Requires-Dist: youtube-transcript-api (>=0.6.3,<0.7.0)
Description-Content-Type: text/markdown

# 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:

```sh
pip install ytkit
```

Upgrade to the latest version:

```sh
pip install --upgrade ytkit
```

## Requirements

*   Python 3.7+


## Usage

### GetChannelSubtitle

Fetch subtitles from all videos in a YouTube channel.

```python
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.

```python
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.

```python
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.

```python
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!
