This is the simplest module for download videos from Rutube
Project description
Rutube Downloader
Get it
pip install rutube-downloader
Try it
from rutube import Rutube
from io import BytesIO
rt = Rutube('https://rutube.ru/video/5c5f0ae2d9744d11a05b76bd327cbb51/')
print(rt.playlist) # [Nature 4k (272x480), Nature 4k (408x720), Nature 4k (608x1080)]
video = rt.playlist[-1]
video.download() # Download a file and save it to the current directory
video.download('downloads\saved-videos') # Path may be absolute or relative
with open('video.mp4', 'wb') as f:
video.download(stream=f)
with BytesIO() as stream: # Or FileIO with wb/rb+ mode
video.download(stream=stream)
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
Built Distribution
File details
Details for the file rutube_downloader-0.0.5.tar.gz
.
File metadata
- Download URL: rutube_downloader-0.0.5.tar.gz
- Upload date:
- Size: 3.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a8789fc253993fa32f5ff5ca7ec6705b5e8a33b84b2e64d4caa72e0e3c597f59 |
|
MD5 | f3a1d4734f69c5f3e6a64f217e3bbd7e |
|
BLAKE2b-256 | a064e7fc1e25fc812eb30a0df0bf95c0c7f9bb7aa2d232741a3e1a6f36b8f6e3 |
File details
Details for the file rutube_downloader-0.0.5-py3-none-any.whl
.
File metadata
- Download URL: rutube_downloader-0.0.5-py3-none-any.whl
- Upload date:
- Size: 4.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 00dd13482fdf1d35a54ffb8ad8e7b50c62b5b818da0991c8215e9693878f1e33 |
|
MD5 | be86c176f22c7715997fbe5906219980 |
|
BLAKE2b-256 | 62ab132d284f9e593d0ac32b21196a80c67d4094a3c36a00f3c52eec604c8c1f |