Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/alincode/youtube-playlist-cli

Youtube Playlist CLI
https://github.com/alincode/youtube-playlist-cli

Last synced: about 2 months ago
JSON representation

Youtube Playlist CLI

Awesome Lists containing this project

README

        

# Youtube Playlist CLI

![GitHub package version](https://img.shields.io/github/package-json/v/alincode/youtube-playlist-cli.svg)
![node version](https://img.shields.io/node/v/youtube-playlist-cli.svg)
![npm downloads](https://img.shields.io/npm/dt/youtube-playlist-cli.svg)
[![Dependency Status](https://img.shields.io/david/alincode/youtube-playlist-cli.svg?style=flat)](https://david-dm.org/alincode/youtube-playlist-cli)

It is a Youtube CLI tool to help you do many things.

### Feature

- It could help you quickly **download the videos**.
- It could help you quickly review playlist items information
- It could help you quickly generate **markdown** file.
- It could help you quickly generate **json** file.

### Requirements

- node 8.x.x

### Install

```sh
npm install -g youtube-playlist-cli
```

#### set your google api key

you need to get your API key, if you don't know how to do, maybe this video could help you.

[how to create YouTube API Key 2019 - YouTube](https://www.youtube.com/watch?v=3jZ5vnv-LZc)

then set up env

```
// for Mac
export GOOGLE_API_KEY="========== YOUR GOOGLE API KEY =========="
export DOWNLOAD_FOLDER="/Users/ailinliu/Downloads"

// for Windows
set GOOGLE_API_KEY="========== YOUR GOOGLE API KEY =========="
set DOWNLOAD_FOLDER="C:\"
```

[How To Edit System Environment Variables In Windows 10 - YouTube](https://www.youtube.com/watch?v=C-U9SGaNbwY)

### Usage via command mode

![](assets/cli.png)

```
yp

yp -c UCJi9ZAuo99MqMuJUXiJjpsA
yp -C UCJi9ZAuo99MqMuJUXiJjpsA

yp -p PLrG78JjvL7hWqX2FW54Ck8UP45fbWQXcu
```

```
yp -P PLrG78JjvL7hWqX2FW54Ck8UP45fbWQXcu
```

![](assets/example.png)

```
yp -j PLrG78JjvL7hWqX2FW54Ck8UP45fbWQXcu
```

![](assets/example2.png)

```
yp -d PL16WqdAj66SCOdL6XIFbke-XQg2GW_Avg
```

![](assets/example3.png)

```
yp -D PL16WqdAj66SCOdL6XIFbke-XQg2GW_Avg
```

### Usage via reactive mode

![](assets/reactive.png)

`ypr`

### Dev

```
node cli.js -p "PLy_eQQ6VGZFwHULlf-jY3HycTqY25kHty"
```

## Relevant Projects

- [youtube-playlist-summary](https://github.com/alincode/youtube-playlist-summary)
- [youtube-playlist-markdown](https://github.com/alincode/youtube-playlist-markdown)

## License

MIT © [alincode](https://github.com/alincode/youtube-playlist-cli)