youtube-metadata-cli
v0.1.1
Published
Get metadata on YouTube videos.
Downloads
3
Maintainers
Readme
youtube-metadata-cli
Get metadata on YouTube videos. Uses the wonderful youtube-dl
. Supports playlists.
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.