Skip to content

This guide provides and explains a Python script that uploads a YouTube video using the YouTube Data API. The code uses the Google APIs Client Library for Python.

Notifications You must be signed in to change notification settings

davidrazmadzeExtra/YouTube_Python3_Upload_Video

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

YouTube Python3 - Upload Video

This guide provides and explains a Python script that uploads a YouTube video using the YouTube Data API. The code uses the Google APIs Client Library for Python.

Guide: https://developers.google.com/youtube/v3/guides/uploading_a_video

Prerequisites

Install the following in your terminal:

pip install --upgrade google-api-python-client
pip install --upgrade google-auth-oauthlib google-auth-httplib2
pip install oauth2client

Run

python3 upload_video.py --file="example.mov" --title="Summer vacation in California" --description="Had fun surfing in Santa Cruz" --keywords="surfing,Santa Cruz" --category="22" --privacyStatus="private"

List of YouTube Categories (Numeric)

https://techpostplus.com/youtube-video-categories-list-faqs-and-solutions/

❌ Private (Locked)

Issue: https://stackoverflow.com/a/64695395

Audit Form: https://developers.google.com/youtube/v3/docs/videos/insert

About

This guide provides and explains a Python script that uploads a YouTube video using the YouTube Data API. The code uses the Google APIs Client Library for Python.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages