Skip to content

aniquetahir/youtube-upload-folder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

Introduction

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

Prerequisites

Please make sure geckodriver is installed. Firefox should also be available in the path

Installation

pip install -r requirements.txt
apt install ffmpeg

Running

python3 main.py <folder location> <name of firefox profile where channel is logged in>

Folder Structure

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

Creating Firefox profiles for different channels

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:

  1. Log in to channel A. Copy the profile folder(usually located in ~/.mozilla/firefox/profiles. Remember the name of the copied folder
  2. Log in the channel B. Copy the profile folder.

About

upload an entire folder containing videos to youtube

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages