
But this time, changing the resolution to 360p: from pytube import YouTube Now let's put the entire code together in one place. Remember to replace video_path with your preferred download directory. Video_streams.download(filename = "my first YouTube download2", Video_streams = (file_extension = 'mp4').get_by_itag( 22) It also inherits the default title from YouTube.īut you can specify a download directory for your video and change the file name: video = YouTube(URL) The video, however, downloads to your current working directory in this case. Video_streams = (file_extension ='mp4').get_by_itag( 22) Now here's how to download a video at 720p resolution: video = YouTube(URL) Video_streams = (file_extension='mp4').get_by_itag( 22) To check the title of a video: video = YouTube(URL) All you need is the itag value for your preferred resolution, which is always available when your print the streams for any video. You can also increase the resolution to 1080p or any other available one if you want. You can try the itag value for 360p to get a lower resolution.

The resolution of the above stream is 720p ( res="720p"). You can call a stream using this itag value by including the get_by_itag() function: video_streams = (file_extension='mp4').get_by_itag( 22) When the video download is finished, it can automatically shut down your Mac.For instance, res="720" has itag="22", while the itag at 360p resolution is 18.


Download all videos from YouTube channel and playlist. Quickly capture video with just the video URLĭownload multiple YouTube videos at the same time. And download videos to fit any popular devices such as iPad, iPhone, iPod, PSP, Apple TV, Zune, Android, and more.Įxtract audio from YouTube videos in MP3 format or directly download YouTube to MP3.ĭownload YouTube videos from browser in only a single click. For more supported sites in iTube Studio for Mac, Click HereĬonvert videos to any formats and devicesĬonvert videos to any other popular video formats like MPG, MPEG, MP4, 3GP, WMV, MOV, AVI, MP3, M4A, WAV, MKA, etc. YouTube, Facebook, Instagram, VEVO, Vimeo, Dailymotion, Break, Metacafe, LiveLeak, Aol, TED, Comedycentral, MTV, CBS, Yahoo, BBC, VH1, ESPN, BlipTV, WatTV, VideoBash, FunnyOrDie, The NY Times, Adult sites, Vine, Soudcloud, Animeultima.io, Lynda, etc.
