Skip to main content
Search
Search This Blog
Coding References of a Programmer
Share
Get link
Facebook
X
Pinterest
Email
Other Apps
Labels
Python
June 18, 2021
YouTube Playlist Downloader - Python
YouTube Playlist Downloader:
This is a script to download all videos in a playlist of YouTube
Code:
from pytube import Playlist playlist = input("Enter Playlist URL: ") p = Playlist(playlist) output_folder = p.title + " By " + p.owner print(f'\n Playlist Name: {p.title} \n') i = 1 for video in p.videos: print(f"Downloading... {video.title}") file_name = f"{i} - {video.title}" video.streams.first().download(output_path=output_folder, filename=file_name) print("Downloaded \n") i = i + 1 print("All Videos are Downloaded Successfully") input()
Download:
Click Here
Comments
Popular Posts
July 21, 2021
Environment Setup for Machine Learning in Python - ML #00
July 17, 2021
File CRUD Application - Python Project #07 - Project #29
Comments
Post a Comment