youtu-get
is project which can get your all name of songs and url from your youtube playlist. It returns array with name of songs and url as objects and the returned data can be save as json file. As my example, but it is optional if you define output
variable.
demo
Instalation
npm i youtu-get -g
Example running:
ytget id="PLxQ30nUCB0uNCCKBD_JW1udM7iYH27cu2" output="/yourOutputPath/youtube-playlist.json"
You can use this package for your next solution like this:
const getYoutubeInfo = ; const idPlaylist = 'PLxQ30nUCB0uNCCKBD_JW1udM7iYH27cu2';;
If you want save output data yout can do it like this:
const getYoutubeInfo = ;const path = ;const username = username; const idPlaylist = 'PLxQ30nUCB0uNCCKBD_JW1udM7iYH27cu2'; const outputPath = path; ;
If you want check your youtube playlist id before running getYoutubeInfo function you can use this:
const getYoutubeInfo isValidId = ;const path = ;const username = username; const idPlaylist = 'PLxQ30nUCB0uNCCKBD_JW1udM7iYH27cu2';const isValid = const outputPath = path;isValid ? ; : console;