Youtube Uploader: auto upload multiple youtube videos 批量上传youtube视频
Node.js Script to upload multiple videos to youtube
Support platform: windows/linux
Setup
1.install node.js
2.install Puppeteer
to control chrome
npm install puppeteer@2.0.0
3.login google account, you can use chrome installed by Puppeteer, which in following directory or you can also use local chrome.
Windows
:node_modules/puppeteer/.local-chromium/win64-706915/chrome-win/chrome
Linux
:node_modules/puppeteer/.local-chromium/linux-706915/chrome-linux/chrome
open chrome and goto page chrome://version/
to get Profile Path, which delete Default
to be user Data Dir.
Windows Profile Path
:C:\Users\peter\AppData\Local\Chromium\User Data\Default
Windows user Data Dir
: C:\Users\peter\AppData\Local\Chromium\User Data
Linux Profile Path
:/home/vncviewer/.config/chromium/Default
Linux user Data Dir
: /home/vncviewer/.config/chromium/
login google account manually
Usage
Download upload.js
then change variable: chrome_user_data_directory, upload_file_directory, title_prefix, video_description.
run script
git clone https://github.com/zhang0peter/youtube-upload-multi-videos.git
cd youtube-upload-multi-videos/
npm install puppeteer@2.0.0
# login google account and set variables
node upload.js
it will open chrome and auto upload each video in directory you specified, after each upload, it will wait 60 seconds to start next upload.