0.1.1 • Published 7 years ago

youtube-metadata-cli v0.1.1

Weekly downloads
7
License
ISC
Repository
github
Last release
7 years ago

youtube-metadata-cli

Get metadata on YouTube videos. Uses the wonderful youtube-dl. Supports playlists.

npm version build status ISC-licensed chat on gitter

Installing

npm install -g youtube-metadata-cli

Usage

Usage:
    youtube-metadata <url>

Options:
    --format -f  Output format.
                 Default: csv
                 Available: csv,ndjson,url

Examples:
    youtube-metadata --format url 'https://www.youtube.com/watch?v=IFtmB2U3Clo&list=PLJ7QPuvv91Jsf2mEnwtCaVyxkuLMkRJF6'

It will write one line of metadata per video.

youtube-metadata-cli can als be used from JavaScript:

const getYoutubeMetadata = require('youtube-metadata-cli')

getYoutubeMetadata('https://www.youtube.com/watch?v=IFtmB2U3Clo&list=PLJ7QPuvv91Jsf2mEnwtCaVyxkuLMkRJF6')
.on('error', console.error)
.on('data', (meta) => {
	console.log(meta.display_id, meta.title)
})

Contributing

If you have a question or have difficulties using youtube-metadata-cli, please double-check your code and setup first. If you think you have found a bug or want to propose a feature, refer to the issues page.