A Python package to get the duration of a YouTube video without using the YouTube Data API.
Project description
YT Duration
This Python package retrieves the duration of a YouTube video without using the YouTube Data API.
Explanation:
The YtDuration
package provides a function to extract the duration of a YouTube video from its URL by web scraping the video's page and parsing the duration information.
Installation
To install the package, use the following command:
pip install YtDuration
Usage
Here is an example of how to use the package:
import yt_duration import YtDuration as yt
video_url = 'YouTube_url'
duration = yt(video_url)
print("Video Duration:", duration)
Thank You
Thank you for using YtDuration. We hope you find it helpful. If you have any questions or feedback, please don't hesitate to reach out!
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
Built Distribution
File details
Details for the file ytduration-0.3.tar.gz
.
File metadata
- Download URL: ytduration-0.3.tar.gz
- Upload date:
- Size: 1.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.19
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6f88b8309ee6fc772c1e2c336c20873f66935c1c536a1371d25ec5d7eed995fe |
|
MD5 | 75296d903afcd5a1c5e86b1bc0e29f20 |
|
BLAKE2b-256 | 37878e6643afd66583f6cb2b6bda41d497ed117feff8ca84292d1c1de361341b |
File details
Details for the file YtDuration-0.3-py3-none-any.whl
.
File metadata
- Download URL: YtDuration-0.3-py3-none-any.whl
- Upload date:
- Size: 1.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.19
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c004f6131846256236a96e625a7188f754b4e7e09dce54a4e93faddd33980e20 |
|
MD5 | f88de523796a373c6221c5f254927f63 |
|
BLAKE2b-256 | 07ca68cfdfa48914b4c821d463129ad7895e30c0638fee536cdc7d5c9a2a69ef |