Skip to main content

Uploading videos to YouTube

Project description

yt_pld - YouTubeUpload

This app helps you automate uploading videos to your YouTube channel. Selenium is used for uploading.

Installation

pip install yt-pld

Example of use

from yt_pld import upload_multiple_videos


video_list = [
    {
        "video_path": 'your_video_path',
        "title_text": 'your_title_for_video',
        "description_text": 'your_description_for_video'
    },
    # Add more video entries as needed
]

login_data = {
    "chrome_driver_path": 'your_chrome_driver_path',
    "email": 'your_email',
    "password": 'your_password',
    "channel_name": 'your_channel_name'
}

upload_multiple_videos(login_data, video_list)

Description of parameters to be transferred

video_list - pass to this list as many dictionaries with video data as many videos you need to upload (currently you can upload a maximum of 10 videos per day)
video_path - your path to the video you want to upload to your channel
title_text - title for the video
description_text - description for the video\

login_data - pass to this dictionary the login data for your YouTube creative studio
chrome_driver_path - path to your chrome driver
email - your email to log in to your google account, to which your YouTube channel is linked to
password - password for the google account to which your YouTube channel is linked
channel_name - name of the channel you want to upload video to\

The upload_multiple_videos function will return unuploaded videos if an error occurs during upload. You can make this fault tolerant by handling it in the following way:

response = True
while response:
    response = upload_multiple_videos(video_list=video_list, login_data=login_data)

You can also limit the number of repeated downloads by setting a counter:

response = True
counter = 3
while response and counter:
    response = upload_multiple_videos(video_list=video_list, login_data=login_data)
    counter -= 1

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

yt_pld-0.0.14.tar.gz (4.0 kB view details)

Uploaded Source

Built Distribution

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

yt_pld-0.0.14-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

File details

Details for the file yt_pld-0.0.14.tar.gz.

File metadata

  • Download URL: yt_pld-0.0.14.tar.gz
  • Upload date:
  • Size: 4.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.6

File hashes

Hashes for yt_pld-0.0.14.tar.gz
Algorithm Hash digest
SHA256 bc02ec50cc029834bd634f1869d2660c77a8a68a9bc2061f6cc128d18c6b62b7
MD5 94adb532a027d092b4aed891600412e8
BLAKE2b-256 3a672650579cb0419b42420cc1a668bd3940f7a748f966b1fdf2c9c317047e79

See more details on using hashes here.

File details

Details for the file yt_pld-0.0.14-py3-none-any.whl.

File metadata

  • Download URL: yt_pld-0.0.14-py3-none-any.whl
  • Upload date:
  • Size: 4.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.6

File hashes

Hashes for yt_pld-0.0.14-py3-none-any.whl
Algorithm Hash digest
SHA256 251bc8e8f7eb180ec36e95a6a3245dbd7e11e373e573a7f8855cf051415be05c
MD5 ac731b32a4c48433cff6e98c680cc609
BLAKE2b-256 ad21fdf0257b75ea5e8a0c73e82691f465da3ba48edbb1912615c96dd1f5dc13

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