Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/alincode/youtube-playlist-cli
- Owner: alincode
- License: mit
- Created: 2018-04-30T22:59:35.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2021-03-06T18:16:14.000Z (almost 4 years ago)
- Last Synced: 2024-10-21T00:37:53.156Z (3 months ago)
- Language: JavaScript
- Homepage:
- Size: 1.14 MB
- Stars: 11
- Watchers: 3
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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)
```
ypyp -c UCJi9ZAuo99MqMuJUXiJjpsA
yp -C UCJi9ZAuo99MqMuJUXiJjpsAyp -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)