1.0.2 • Published 6 years ago
easyyoutubedownload v1.0.2
easyyoutubedownload
This is a command line node program for downloading Youtube video as MP3 || MP4 format. Enjoy. :)
Github Repository
https://github.com/thisishkf/easyyoutubedownload
NPM repository
https://www.npmjs.com/package/easyyoutubedownload
Before Use
Install Node.js
As this is a node program, Node.js must be included. Please Install the Latest Current Version for Node.js
- Install from offical website
- download link :
https://nodejs.org/en/download/
Install Node Dependencies
npm install fs youtube-dl fluent-ffmpeg ffmetadata
Install ffmpeg for Transfer Media Format
Install in offical website
- download link :
https://www.ffmpeg.org/download.html
Install with homebrew
- brew install libvpx
brew install ffmpeg --with-libvpx
Config your own program
- Change the download destination by calling setDownloadPath(str, str)
const easyyoutubedownload = require('easyyoutubedownload');
easyyoutubedownload.setDownloadPath("mp3", __dirname + "/files/mp3");
easyyoutubedownload.setDownloadPath("mp4", __dirname + "/files/mp4");
- Fill in the target Youtube video inforamtion
let options = {
link : [youtube video code] ,
type: [donwload as],
title : [title],
artist: [artist]
};
- is the value in query param v
- eg .
-zHVW7Zy_vg
for https://www.youtube.com/watch?v=-zHVW7Zy_vg
2.2 donwload as
- is the target downloading format
- only support
MP3
orMP4
2.3 title
- any valid filename for os
- eg.
enjoyThisProgram
2.4 artist
- ang valid string for metadata
- eg.
Thisishkf