Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/timkoehne/youtube-upload-selenium
https://github.com/timkoehne/youtube-upload-selenium
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/timkoehne/youtube-upload-selenium
- Owner: timkoehne
- License: mit
- Created: 2024-01-10T20:38:57.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-01-13T18:36:13.000Z (12 months ago)
- Last Synced: 2024-01-14T17:11:02.362Z (12 months ago)
- Language: Python
- Size: 10.7 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Youtube Uploader
This is a python module that uses [selenium webdriver](https://github.com/SeleniumHQ/selenium) 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](https://www.omgubuntu.co.uk/2022/04/how-to-install-firefox-deb-apt-ubuntu-22-04#:%7E:text=Installing%20Firefox%20via%20Apt%20(Not%20Snap)&text=You%20add%20the%20Mozilla%20Team,%2C%20bookmarks%2C%20and%20other%20data) 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.