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.4.tar.gz (1.8 kB view details)

Uploaded Source

Built Distribution

YtDuration-0.4-py3-none-any.whl (1.7 kB view details)

Uploaded Python 3

File details

Details for the file ytduration-0.4.tar.gz.

File metadata

  • Download URL: ytduration-0.4.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.4.tar.gz
Algorithm Hash digest
SHA256 ec028d117360b8adb27a6389ab000114ace8389838c201a58147c086017a9923
MD5 486904a8ec884eaaf9ec2986ac674b4e
BLAKE2b-256 57746f5f28744cba0c75eeb2bda80a384a8601627005c43283d18ab393290162

See more details on using hashes here.

File details

Details for the file YtDuration-0.4-py3-none-any.whl.

File metadata

  • Download URL: YtDuration-0.4-py3-none-any.whl
  • Upload date:
  • Size: 1.7 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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 60d1a6e25798accb6a335668e1406c50cfb7c226422767642696fbae28571fd1
MD5 b5258dd19ba7c13b27fe49c1bb7da8a5
BLAKE2b-256 f163f2ae7b0f09dc184fb811adfd52aa7a98b990b01491d722777524440c3370

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