semvec/pypi-packages huggingface dataset:
rutube-downloader 0.0.8
This is the simplest module for download videos from Rutube
Requires Python: >=3.7

# Rutube Downloader

## Get it

```python
pip install rutube-downloader
```

## Try it

```python
from rutube import Rutube

rt = Rutube('https://rutube.ru/video/5c5f0ae2d9744d11a05b76bd327cbb51/')

# Get a list of videos
# Each object is the same video but with different resolution
print(rt.playlist)  # [Nature 4k (272x480), Nature 4k (408x720), Nature 4k (608x1080)]

# Get a list of available resolutions
print(rt.available_resolutions)  # [480, 720, 1080]

# Download a video with specific resolution and save it to the current directory 
rt.get_by_resolution(720).download()

# Download a video with the best quality and save it to specific directory 
# Path may be absolute or relative
rt.get_best().download('downloads/saved-videos')
```

## Features

### Get video with specific resolution

```python
from rutube import Rutube

rt = Rutube('https://rutube.ru/video/5c5f0ae2d9744d11a05b76bd327cbb51/')

# Returns a video with the best quality
rt.get_best()

# Returns a video with the worst quality
rt.get_worst()

# Returns None if not found
rt.get_by_resolution(1080)

# Returns a list of integers - [480, 720, 1080]
rt.available_resolutions
```

### Writing to bytes

```python
from rutube import Rutube
from io import BytesIO, FileIO

rt = Rutube('https://rutube.ru/video/5c5f0ae2d9744d11a05b76bd327cbb51/')

with open('video.mp4', 'wb') as f:
    rt.get_best().download(stream=f)

with BytesIO() as stream:
    rt.get_best().download(stream=stream)

with FileIO('video.mp4', 'wb') as file:  # Mode: wb or rb+
    rt.get_best().download(stream=file)
```

### Faster downloading
Downloading using threads. Call _download()_ with number of workers as argument.

> [!WARNING]
> It's expensive way to download. Be careful to use it!

```python
from rutube import Rutube

rt = Rutube('https://rutube.ru/video/5c5f0ae2d9744d11a05b76bd327cbb51/')

rt.get_best().download(workers=8)
```
subsplease 1.0.4
A package for fetching and parsing episodes from SubsPlease API.
Requires Python: >=3.11

## SubsPlease API Client This package provides a simple interface to fetch and parse episodes from the [SubsPlease](https://subsplease.org/).

### Installation You can install the package using pip:

```
pip install subsplease
```

## Usage

Here’s how you can use the package:

```
from subsplease import SubsPlease
search_query = "kami"
subs_please = SubsPlease()
episodes = subs_please.search(search_query)
for episode in episodes:
    print(episode)
```

## Features

- Search for episodes based on show names.
- Retrieve download links for various quality formats (480p, 720p, 1080p).
- Easy integration with your Python applications.

## Contributing

Contributions are welcome! If you have suggestions for improvements or new features, please feel free to submit a pull request or create an issue in the repository.

## License

This project is licensed under the MIT License. See the LICENSE file for more details.