Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/julianfbeck/ytplaylist-dl
download entire YouTube playlists
https://github.com/julianfbeck/ytplaylist-dl
playlist youtube-downloader youtube-playlist ytdl
Last synced: about 2 months ago
JSON representation
download entire YouTube playlists
- Host: GitHub
- URL: https://github.com/julianfbeck/ytplaylist-dl
- Owner: julianfbeck
- Created: 2018-07-06T00:06:02.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-04-26T04:14:07.000Z (over 1 year ago)
- Last Synced: 2024-04-24T15:26:58.378Z (8 months ago)
- Topics: playlist, youtube-downloader, youtube-playlist, ytdl
- Language: JavaScript
- Size: 62.5 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ytplaylist-dl [![Build Status](https://travis-ci.org/jufabeck2202/ytplaylist-dl.svg?branch=master)](https://travis-ci.org/jufabeck2202/ytplaylist-dl)
> download entire YouTube playlists at once
## Install
```
$ npm install ytplaylist-dl
```## Usage
```js
const ytpdl = require('ytplaylist-dl');(async () => {
let videos = await ytpdl("YouTube url....", "Desktop", options);
//videos = [ "Desktop/Video1" , "Desktop/Video2", .....]await ytpdl("https://www.youtube.com/playlist?list=PLfpHPxe91z9NEwLMsxfmAehlZnoTzRFB8", "Desktop",{format:"mp4"});
})();
```## API
### ytpdl(url, output, [options])
Downloads all videos from the playlist and saves them under the output Path.
Returns a `Promise` that holds an Array with all downloaded files.#### url
Type: `string`
Url to the YouTube Playlist. If the provided video is a normal YouTube video, the single video will be downloaded. Plalist urls can be
- https://www.youtube.com/playlist?list=PLfpHPxe91z9NEwLMsxfmAehlZnoTzRFB8
- https://www.youtube.com/watch?v=pRk9K1eB-JQ&list=PLfpHPxe91z9NEwLMsxfmAehlZnoTzRFB8&
- https://www.youtube.com/watch?v=pRk9K1eB-JQ&list=PLfpHPxe91z9NEwLMsxfmAehlZnoTzRFB8&index=1
- single videos can also be downloaded: https://www.youtube.com/watch?v=pRk9K1eB-JQ&#### output
Type: `string`
Where to save the videos.
#### options
Type: `Object`
```
{
format:"mp4"
quality:"highest"
}
```
- **format** The video format of the downloaded Videos.
- **quality** The quality of the video see [ytdl-core quality](https://github.com/fent/node-ytdl-core#ytdlurl-options).## Related
- [ytdl-core](https://github.com/fent/node-ytdl-core) - Youtube downloader in javascript.
- [youtube-playlist](https://github.com/CodeDotJS/youtube-playlist) -Extract links, ids, and names from a youtube playlist## License
MIT © [Julian Beck](https://github.com/jufabeck2202)