Skip to main content

The package that helps to upload videos on YouTube using Selenium

Project description

About

Python script to upload videos on YouTube using Selenium that allows to upload more than 61 videos per day which is the maximum [1] for all other tools that use the YouTube Data API v3.

1: Since the projects that enable the YouTube Data API have a default quota allocation of 10,000 units per day [2] and a video upload has a cost of approximately 1,600 units [3]: 10,000 / 1,600 = 6.25.

Instead, this script is only restricted by a daily upload limit for a channel on YouTube:

100 videos is the limit in the first 24 hours, then drops to 50 every 24 hours after that. [4]

Installation

git clone https://github.com/linouk23/youtube-uploader-selenium
cd youtube-uploader-selenium

Package Usage

from youtube_uploader_selenium import YouTubeUploader

video_path = '123/rockets.flv'
metadata_path = '123/rockets_metadata.json'

uploader = YouTubeUploader(video_path, metadata_path)
was_video_uploaded, video_id = uploader.upload()
assert was_video_uploaded

Script Usage

At a minimum, just specify a video:

python3 upload.py --video rockets.flv

If it is the first time you've run the script, a browser window should popup and prompt you to provide YouTube credentials (and then simply press Enter after a successful login). A token will be created and stored in a file in the local directory for subsequent use.

Video title, description and other metadata can specified via a JSON file using the --meta flag:

python3 upload.py --video rockets.flv --meta metadata.json

An example JSON file would be:

{
  "title": "Best Of James Harden | 2019-20 NBA Season",
  "description": "Check out the best of James Harden's 2019-20 season so far!"
}

Dependencies

  • geckodriver
  • Firefox
  • selenium_firefox

FAQ

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Feedback

If you find a bug / want a new feature to be added, please open an issue.

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

youtube-uploader-selenium-0.1.0.tar.gz (4.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

youtube_uploader_selenium-0.1.0-py3-none-any.whl (6.2 kB view details)

Uploaded Python 3

File details

Details for the file youtube-uploader-selenium-0.1.0.tar.gz.

File metadata

  • Download URL: youtube-uploader-selenium-0.1.0.tar.gz
  • Upload date:
  • Size: 4.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/47.1.1 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.7.3

File hashes

Hashes for youtube-uploader-selenium-0.1.0.tar.gz
Algorithm Hash digest
SHA256 2611c6df397ed322dd0e62c64069bddb3ef1d1dcf2d7b8e90bd3d992fb263299
MD5 8a5592acfd954fc1a1477135cf73d54b
BLAKE2b-256 f87e37f066ddd9c95c97aa082271126269202171dbe71ac2f6b9fa150908c92a

See more details on using hashes here.

File details

Details for the file youtube_uploader_selenium-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: youtube_uploader_selenium-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 6.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/47.1.1 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.7.3

File hashes

Hashes for youtube_uploader_selenium-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4694f962cdad20672d4a9eb7b0dc8e22c4aa3256739485b44c42f18cea05f3d6
MD5 e753e3e2127be90d31bee1d859646c97
BLAKE2b-256 d18100591693467458c4f9f17960dcb0ee669160d4e1fcf9ff1b446ecdce9ea7

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page