Skip to main content

A Python package to get the duration of a YouTube video without using the YouTube Data API.

Project description

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!

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

ytduration-0.3.tar.gz (1.8 kB view details)

Uploaded Source

Built Distribution

YtDuration-0.3-py3-none-any.whl (1.6 kB view details)

Uploaded Python 3

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

Hashes for ytduration-0.3.tar.gz
Algorithm Hash digest
SHA256 6f88b8309ee6fc772c1e2c336c20873f66935c1c536a1371d25ec5d7eed995fe
MD5 75296d903afcd5a1c5e86b1bc0e29f20
BLAKE2b-256 37878e6643afd66583f6cb2b6bda41d497ed117feff8ca84292d1c1de361341b

See more details on using hashes here.

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

Hashes for YtDuration-0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 c004f6131846256236a96e625a7188f754b4e7e09dce54a4e93faddd33980e20
MD5 f88de523796a373c6221c5f254927f63
BLAKE2b-256 07ca68cfdfa48914b4c821d463129ad7895e30c0638fee536cdc7d5c9a2a69ef

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page