Hey guys! In this video I will show you that how you can create a Non-GUI YouTube Video downloader!!!! So let's begin now! Hope you like it!
Step to start:-
Frist open a Python IDE PyCharm or VS Code then create a main.py file then just copy the code given below! And just save and run!!
So let's see the code for it!!
Modules to be installed:-
pip install pytube
PyTube is needed to be installed!!
Python Code:-
from pytube import YouTubeclass colours:GREEN = '\033[92m'ENDC = '\033[1m'link = input('Enter the valid video URL: ')yt = YouTube(link)print('Title: ', yt.title)print('Views: ', yt.views)print('Length of video: ', yt.length, 'second')print('Description: ', yt.description)print(yt.streams.filter(only_audio = True))print(yt.streams.filter(only_video = True))print(yt.streams.filter(progressive = True))ys = yt.streams.get_highest_resolution()ys = yt.streams.get_by_itag('22')ys.download()ys.download('location')print('.')print('-----------------')print(colours.GREEN + 'Download Sucessfull!!' + colours.ENDC)print('-----------------')print('.')
Hope you like it then please SUBSCRIBE to my channel and hit the like button, And please help me reach 1000 Subscribers!!
3 Comments
After a long time, I read a very beautiful and very important article that I enjoyed reading. I have found that this article has many important points. Thanks for share best free youtube video downloader.
ReplyDeleteVery Glad to hear that! Thank you very very much! I just Need your Support!!
DeleteYou are providing good knowledge. It is really helpful and factual information for us and everyone to increase knowledge about tiktok downloader mp4. Continue sharing your data. Thank you.
ReplyDelete