Skip to main content

YT Duration

License: MIT License: GPL v3

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!

Metadata

Release files for YtDuration 0.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for YtDuration 0.4
File Size Uploaded Provenance Actions
ytduration-0.4.tar.gz 1.8 kB Without provenance Details for ytduration-0.4.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for YtDuration 0.4
File Interpreter ABI Platform Actions
YtDuration-0.4-py3-none-any.whl Python 3 none any Details for YtDuration-0.4-py3-none-any.whl

Total release size: 3.5 kB

Release files / ytduration-0.4.tar.gz

Download URL ytduration-0.4.tar.gz
Size 1.8 kB
Tags Source
SHA-256 checksum
How to use checksums
ec028d117360b8adb27a6389ab000114ace8389838c201a58147c086017a9923
BLAKE2b-256 checksum
How to use checksums
57746f5f28744cba0c75eeb2bda80a384a8601627005c43283d18ab393290162
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.9.19

Release files / YtDuration-0.4-py3-none-any.whl

Download URL YtDuration-0.4-py3-none-any.whl
Size 1.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
60d1a6e25798accb6a335668e1406c50cfb7c226422767642696fbae28571fd1
BLAKE2b-256 checksum
How to use checksums
f163f2ae7b0f09dc184fb811adfd52aa7a98b990b01491d722777524440c3370
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.9.19

Security for YtDuration 0.4

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.4 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page