YouTube has a very restrictive limit for uploading files using its API. The objective of this script is to upload all the files in a folder on YouTube using the web api (which has almost no restrictions).
Please make sure geckodriver is installed. Firefox should also be available in the path
pip install -r requirements.txt
apt install ffmpeg
python3 main.py <folder location> <name of firefox profile where channel is logged in>
Example of folder structure that the script processes:
.
├── a
│ ├── 1.mp4
│ └── 2.mp4
└── b
├── 3.mp4
└── 4.mp4
Videos in each folder are merged together using ffmpeg and uploaded as a.mp4 and b.mp4 Finally, after the upload is finished the originals are deleted
Simply, log into your channel account and copy the profile folder. The folder name of the copied profile folder can be provided to the script to automate logging in without using credentials or captcha's e.g. If you want to upload videos to channel 'A' and channel 'B'. Here are the steps you would take:
- Log in to channel A. Copy the profile folder(usually located in
~/.mozilla/firefox/profiles
. Remember the name of the copied folder - Log in the channel B. Copy the profile folder.