An open API service indexing awesome lists of open source software.

https://github.com/parth-paradkar/how_long

Python script to find the total duration of a YouTube playlist and other related information from its URL
https://github.com/parth-paradkar/how_long

beautifulsoup python web-scraping youtube-playlist

Last synced: 9 months ago
JSON representation

Python script to find the total duration of a YouTube playlist and other related information from its URL

Awesome Lists containing this project

README

          

# how_long
Python script to find the total duration of a YouTube playlist and other related information from its URL

## Usage
Run the script with the URL of the YouTube playlist as the first argument

```
$ python3 script.py
```

## Example

![Playlist screenshot](/img/playlist_screenshot.png)

Enter the following code in your terminal

```
$ python3 script.py https://www.youtube.com/playlist?list=PLJ8cMiYb3G5eLwIHwp0NAPJaLSo9qNexm
```

Output:

```

Playlist: Vox Borders: India
Channel: Vox
No. of videos: 5
Total playlist duration: 0:49:47
Average video duration: 0:09:57
19,779 views

```