You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

YtDuration

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

YtDuration

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

0.4
pipPyPI
Maintainers
1

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!

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts