In the name of God, who have guided me to do this work
Note1: In case you find any issue, please raise an issue, So that I can fix it.
Please star this repo by clicking on ⭐ button above
- No upload Limits (100 videos/day limit set by youtube for every channel)
- Free & Easy to use
- Install Nodejs
npm i youtube-videos-uploader
- Go to your Google Security settings and note down your recovery email and delete recovery phone from your google settings
- Go to your Youtube settings and Setup your upload defaults Settings:
const { upload } = require('youtube-videos-uploader');
// recoveryemail is optional, only required to bypass login with recovery email if prompted for confirmation
const credentials = { email: 'email', pass: 'pass', recoveryemail: 'recoveryemail' }
// minimum required options to upload video
const video1 = { path: 'video1.mp4', title: 'title 1', description: 'description 1' }
// Extra options like tags, thumbnail, language, playlist etc
const video2 = { path: 'video2.mp4', title: 'title 2', description: 'description 2', thumbnail:'thumbnail.png', language: 'english', tags: ['video', 'github'], playlist: 'playlist name', onSuccess:onVideoUploadSuccess }
const onVideoUploadSuccess = (videoUrl) => {
// ..do something..
}
// Returns uploaded video links in array
upload (credentials, [video1, video2]).then(console.log)
// OR
// This package uses Puppeteer, you can also pass Puppeteer launch configuration
upload (credentials, [video1, video2], {headless:false}).then(console.log)
// Refer Puppeteer documentation for more launch configurations like proxy etc
// https://pptr.dev/#?product=Puppeteer&version=main&show=api-puppeteerlaunchoptions
[ 'https://youtu.be/fh2Kreex5Eg', 'https://youtu.be/fh2Krefx5Eg' ]
- Pierre Miniggio( @pierreminiggio ) - For Adding Youtube UI English Language Support and JSDoc
- TentacleSama4254 - For Adding Thumbnail option and fixing tags error
- Sai Charan - For onSuccess Option
You can help support this package by as little as $3, because this package needs regular maintenance
Support Link