Skip to content

A utility to upload videos downloaded from the vimeo-downloader

Notifications You must be signed in to change notification settings

epicsf/youtube-uploader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

58 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Youtube Uploader

This python script is the second of two scripts for transferring videos from Vimeo to Youtube. The first can be found here.

Notes

This script is based off of the Youtube examples found here.

Youtube API Docs can be found here.

Setup

This script has been written and tested with Python version 3.7.

To install:

1. Install Dependencies

Run pip install -r requirements.txt.

2. Create Client Secrets

  1. Go to https://console.developers.google.com and, if necessary, create a new project. If creating a new project, make sure to also set up the OAuth consent screen.
  2. Click on "ENABLE APIS AND SERVICES" and search for (and enable) "Youtube Data API v3".
  3. In the project, create an "OAuth client ID" credential and download the created JSON file
  4. Name the file "client_secret.json" and place in the root level of the repository

Running the script

Note: This script keeps track of which videos it has uploaded before by adding a .complete file in the video directory of videos it has uploaded. To re-upload videos, delete the .complete file.

To run the script, run:

python main.py --file <path/to/csv/file.csv> --videosdir <path/to/videos/directory>

The script takes the following arguments --file - The location of the csv file paths. Multiple files can be specified. The script will combine all the csv files and sort them by release date. --videosdir - The directory where the videos are stored. Only one source directory is allowed. --limit (Optional) - The number of videos to upload. --offset (Optional) - The number of videos to skip initially.

While the script is running, check here or here to monitor progress.

About

A utility to upload videos downloaded from the vimeo-downloader

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages