Skip to content

Python Interface for uploading Youtube Videos using Selenium Webdriver

License

Notifications You must be signed in to change notification settings

timkoehne/Youtube-Upload-Selenium

Repository files navigation

Youtube Uploader

This is a python module that uses selenium webdriver to upload videos to youtube.

Since this uses selenium to nagivate the HTML of youtube, this WILL probably break when youtube updates their frontend. Last verified to work on 12 Jan 2024.

Requirements

  • Firefox - tested on 121.0 but should work on most modern versions

  • Python - tested on 3.10.13 but should work on most modern versions

  • pip install selenium

Usage

You need to be logged in on youtube in your firefox-profile

see example usage in example_single_video.py and example_multiple_videos.py

Possible problems

  • I found this to be very reliable, but depending on your internet speed you might want to change the sleep-timings in youtube_upload.py
  • This enters the publication date in MM/DD/YYYY format. If your youtube interface uses a language with a different format, it will crash. Change your youtube display language to english or edit the date_format_template in youtube_upload.py to match your display language.
  • if firefox is installed through snap, selenium has problems finding and accessing the geckdriver and any profiles. To solve this install firefox without snap. For ubuntu this explains how to do it since apt installs firefox through snap by default.
  • When transferring a firefox-profile from one device to another, youtube will probably detect it and require you to verify your login. This needs to be done manually and can't be done headless.

About

Python Interface for uploading Youtube Videos using Selenium Webdriver

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages