Swag666baby / babytube

a pytube-based library for searching and YouTube downloads

Home Page:https://www.npmjs.com/package/babytube

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.")
})

About

a pytube-based library for searching and YouTube downloads

https://www.npmjs.com/package/babytube


Languages

Language:JavaScript 65.8%Language:Python 34.2%