Download videos and retrieve metadata from Vimeo.
Project description
Vimeo Downloader
Downloads Vimeo videos and retrieve metadata such as views, likes, comments, duration of the video.
- Easy to use and friendly API.
- Support for downloading private or embed only Vimeo videos.
- Retrieve direct URL for the video file.
Installation
pip install vimeo_downloader
Usage
>>> from vimeo_downloader import Vimeo
>>> v = Vimeo('https://vimeo.com/503166067')
Metadata
>>> meta = v.metadata
>>> meta.title
"We Don't Have To Know - Keli Holiday"
>>> meta.likes
214
>>> meta.views
8039
>>> meta._fields # List of all meta data fields
('id', 'title', 'description'...) # Truncated for readability
Download stream
>>> s = v.streams
>>> s
[Stream(240p), Stream(360p), Stream(540p), Stream(720p), Stream(1080p)]
>>> best_stream = s[-1] # Select the best stream
>>> best_stream.filesize
'166.589421 MB'
>>> best_stream.direct_url
'https://vod-progressive.akamaized.net.../2298326263.mp4'
>>> best_stream.download(download_directory='DirectoryName',
filename='FileName')
# Download video with progress bar and other information,
# to disable this behaviour use mute=True
Downloading private or embed only videos
>>> from vimeo_downloader import Vimeo
>>> v = Vimeo('https://player.vimeo.com/video/498617513',
embedded_on='https://atpstar.com/plans-162.html')
For embed only videos, also provide embedded_on parameter to specify the URL on which video is embedded without query parameters.
>>> v.streams
[Stream(240p), Stream(360p), Stream(540p), Stream(720p), Stream(1080p)]
>>> v.streams[-1].download(download_directory='DirectoryName',
filename='FileName')
# Downloads the best stream with progress bar and other information,
# to disable this behaviour use mute=True
License
Distributed under the MIT licence. Read LICENSE
for more information
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
vimeo_downloader-0.1.0.tar.gz
(5.8 kB
view hashes)
Built Distribution
Close
Hashes for vimeo_downloader-0.1.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 23c5b0febad0fe31b67146fb8981b4e654b2b798b114baa3244c478f7092d101 |
|
MD5 | 19d509dcb497f598b23286b25e085121 |
|
BLAKE2b-256 | 63d7c620eb60b84cc61165b07cf19e6505f9d8289789ed1e358d296305c91a93 |