Package: mediakit
MediakitDownload YouTube videos fast, directly from the command lineFeatures|Installation|How to use|API Reference|Development experiences:warning: WarningThis project is archived and no longer maintained. If you'd like alternatives to Mediakit,youtube-dlandyt-dlpare great options, including more features and a solid contributing community.Mediakitis a command line tool to download videos from YouTube.FeaturesQuickly download YouTube videos with a single command on your terminalSelect specific download formats (video, audio and video-only) if you want to, with resolutions as high as4K:sunglasses:InstallationTo install Mediakit, you needPython 3.6+andpipalready installed on your computer. Then, run:pipinstallmediakitHow to useYou can download a video with Mediakit by running:mediakit<video_url>[<output_path>]video_url: the URL of the video to download (e.g.https://www.youtube.com/watch?v=...).As URL's may have special characters, it is recommended that youwrap the URL in double quotes("") to ensure that it will be recognized properly.output_path: optional destination to where to save the downloads. If not provided, this will default to the current directory.You can also provide a custom name for the downloaded file. To do that, include it in the output path (e.g.path/to/folder/video.mp4).After running this command, an interactive CLI will guide you through the download process.Examples of use:Download to the current directorymediakit"https://www.youtube.com/watch?v=m7AFEULF9LI"Download to~/Videosmediakit"https://www.youtube.com/watch?v=m7AFEULF9LI"~/VideosDownload to~/Videoswith namesong.mp4mediakit"https://www.youtube.com/watch?v=m7AFEULF9LI"~/Videos/song.mp4Selecting specific download formatsBy default, Mediakit will download the specified video with the highest available resolution. However, you can select specific download formats with the flag--formats(or its shorthand-f), followed by one or more desired formats:mediakit<video_url>[<output_path>][-f|--formats]You can also download asaudio(mp3) or asvideo only(without audio) by using the format optionsaudioandvideoonly, respectively. If no resolution is provided with these options, Mediakit will download the media with highest quality, although you can select a specific resolution by adding it right after the option used (e.g.-f audio 128kbps). Check the examples bellow for more use details.If a resolution is not available for the video, the download will fall back to the closest available resolution lower than the one specified.Examples of use:Download with resolution of1080pmediakit"https://www.youtube.com/watch?v=m7AFEULF9LI"-f1080pDownload with resolution of4K(2160p)mediakit"https://www.youtube.com/watch?v=m7AFEULF9LI"-f4KDownloadmultiple resolutionsat once (each resolution will be downloaded in a different file)mediakit"https://www.youtube.com/watch?v=m7AFEULF9LI"-f1080p720pDownload with thehighest resolution available(same result as not using the flag-f)mediakit"https://www.youtube.com/watch?v=m7AFEULF9LI"-fmaxDownload asaudio(mp3)mediakit"https://www.youtube.com/watch?v=m7AFEULF9LI"-faudioDownloadmultiple formats and resolutionsat once (each resolution will be downloaded in a different file)mediakit"https://www.youtube.com/watch?v=m7AFEULF9LI"-f1080paudiovideoonly720p# download video with 1080p, audio with highest definition available and video-only (without audio) with 720pDownloading multiple videosDownloading from playlistsBy providing a playlist URL, Mediakit will automatically download all videos in it.mediakit<playlist_url>[<output_path>]playlist_url: the URL of the playlist to download (e.g.https://www.youtube.com/playlist?list=...).Make sure the playlist is marked as public, otherwise Mediakit won't be able to access it!You can also use other options with this command, such as specify which formats and definitions you want your downloads to be.Using a batch fileWith the option-b(or its longhand--batch), you can download multiple videos sequentially by providing a batch file (a text file containing one or more video URL's, each one in a separate line):mediakit[-b|--batch]<batch_file>By running this, Mediakit will read all URL's in the provided file and download them sequentially.You can also use other options along with--batch, similarly todownloading from playlists.Examples of use:Using a batch file calledurls.txtas an example:# contents of `urls.txt`https://www.youtube.com/watch?v=m7AFEULF9LI
https://www.youtube.com/watch?v=tpWLeUt_7Cc
https://www.youtube.com/watch?v=Fau8gKw33MEDownload URL's inurls.txtwith the highest available resolutionmediakit-burls.txtDownload URL's inurls.txtas audio (mp3)mediakit-burls.txt-faudioAPI ReferenceMediakit currently supports the following command options:OptionDescriptionExample-h,--helpShow helpmediakit -h-v,--versionShow the currently installed versionmediakit -v-y,--yesAnswer "yes" to all questions beforehandmediakit https://... -y-b <batch_file>,--batch <batch_file>Download videos from URL's stored in a batch filemediakit -b urls.txt-nc,--no-colorsDisable the colors of the interfacemediakit https://... -nc-f <formats>,--formats <formats>Specify which formats you want to downloadmediakit https://... -f audio-p <maximum downloads in parallel>,--formats <maximum downloads in parallel>Set a limit to downloads in parallelmediakit https://... -f audioDevelopment experiencesAll experiences and learning acquired during the development of Mediakit are detailed inDevelopment experiences and learning. Check it out if you want to know more about what were the motivations to build this project, how it was developed and what were the main challenges and experiences.Made byDiego Aquino:sunglasses:.Connect with me!