babytube

1.4.7 • Public • Published

babytube

NPM Version Npm package yearly downloads

babytube is a pytube based library to get data from a given youtube video, download it or just the audio.

necessary

you need python3 and (obviously) nodejs installed on your machine.

installation

npm install babytube

examples

to get data from a video like description, title, duration, thumbnail and stuff like that use the getData method.

const babytube = require("babytube")

babytube.getData('https://www.youtube.com/watch?v=VIDEO_ID').then((data) => {
    console.log(data); 
})

to download some music use the musicDownload method.

const babytube = require("babytube")

babytube.musicDownload('https://www.youtube.com/watch?v=VIDEO_ID', 'FILENAME.mp3').on('finish', () => {
    console.log("completed download.")
})

or to download the video

const babytube = require("babytube")

babytube.videoDownload('https://www.youtube.com/watch?v=VIDEO_ID', 'FILENAME.mp4').on('finish', () => {
    console.log("completed download.")
})

Package Sidebar

Install

npm i babytube

Weekly Downloads

20

Version

1.4.7

License

MIT

Unpacked Size

410 kB

Total Files

47

Last publish

Collaborators

  • swag666baby