#!/usr/bin/env python
# coding: utf-8
# # Download YouTube videos in Python
# In[1]:
pip install pytube
# In[1]:
#import pytube library to download the video
import pytube
#Ask for the url of video
url = input("Enter video url: ")
#we can take path as well, just uncomment the following line
#path = input("Enter path of storage")
#specify the starage path of video
path="E:"
#magic line to download the video
pytube.YouTube(url).streams.get_highest_resolution().download(path)
#clcoding.com
# In[ ]:
# In[ ]:
0 Comments:
Post a Comment