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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: ytduration-0.1.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.1.tar.gz
Algorithm Hash digest
SHA256 1e5715f1e42d6b71e092507f6e9e2e3469e8867ebd05918c395a3c9047099887
MD5 4af957a51f4b5fef1d3a4357481b2be3
BLAKE2b-256 1b80d244e4729a81002ec603f8801103d4717bb92a269a8de696d27896739dc0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: YtDuration-0.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8e064d2880d6179dcf15903a5b5fa72dc33cdce61f701d6462073c5591d96ca5
MD5 e90dac1eaf37eecddb2fe1f40766a31d
BLAKE2b-256 c403fd55aed5120851a8581ea286d4a13cebe5edd1277809eaeab0b8cd4acb67

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