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
- Host: GitHub
- URL: https://github.com/parth-paradkar/how_long
- Owner: parth-paradkar
- Created: 2019-04-14T09:57:26.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2019-09-28T19:52:22.000Z (over 6 years ago)
- Last Synced: 2025-02-27T04:31:04.002Z (about 1 year ago)
- Topics: beautifulsoup, python, web-scraping, youtube-playlist
- Language: Python
- Size: 309 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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

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
```