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.15.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.15-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: yt_pld-0.0.15.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.15.tar.gz
Algorithm Hash digest
SHA256 4af62521a7549cc365053f1538e7af361c734760490c6451cbaf488630dd16cc
MD5 c8324101bc8080e5905925c369691524
BLAKE2b-256 c9145f6153955a87e008b7bbeda000cea92c3c1b3664f2cf9eabae4c3f61dbf4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: yt_pld-0.0.15-py3-none-any.whl
  • Upload date:
  • Size: 4.3 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.15-py3-none-any.whl
Algorithm Hash digest
SHA256 e970aa3ff816e6bc5eb3798219613949631c9bd8397ea9e526f828622a81c873
MD5 055aea7a71ac6a30601c2898a67f428b
BLAKE2b-256 55c36f95276bab887bf444f171c911f4e6ee52f9b4b1ab620cb10701be2ed9cc

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