Skip to main content

A Python library to automate video uploads to YouTube.

Project description

🚀 upload-socials

Streamline your content workflow by automating video uploads to YouTube with this Python library.


⚠️ Prerequisites

This is a GUI automation library and requires a specific setup to function:

  1. Screen Resolution: Your screen resolution should ideally be 1920x1080. The browser window should be maximized.
  2. Reference Images: GUI automation works by finding images on the screen. You must provide your own folders of reference images (e.g., screenshots of the 'Upload', 'Next', and 'Publish' buttons for YouTube).
  3. Platform Language: The YouTube website must be set to English for the default image names to match.

This library is best suited for developers comfortable with tuning GUI automation scripts.

Installation

pip install upload-socials

Quick Start

Create a folder for your automation images. For example: C:\my_automation_images\youtube. Then, take screenshots of the buttons needed for the upload process and save them in that folder (e.g., create.png, next.png, publish.png).

from upload_socials import upload_youtube

# The absolute path to your folder of reference images for YouTube
YT_IMAGE_PATH = r"C:\\my_automation_images\\youtube"

# Video details
video_file = r"C:\\path\\to\\my_awesome_video.mp4"
video_title = "My First Automated Upload!"
video_desc = "This was uploaded using the upload-socials Python library."
thumb_file = r"C:\\path\\to\\my_thumbnail.png"
video_tags = "python,automation,coding"

# Call the function
upload_youtube(
    filepath=video_file,
    title=video_title,
    image_path=YT_IMAGE_PATH,
    description=video_desc,
    thumbnail=thumb_file,
    tags=video_tags
)

API Overview

  • upload_youtube(filepath, title, image_path, ...)

Each function requires an image_path argument pointing to a folder containing the necessary .png screenshots for its automation tasks.

License

This project is licensed under the MIT License.

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

upload_socials-0.2.1.tar.gz (48.4 kB view details)

Uploaded Source

Built Distribution

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

upload_socials-0.2.1-py3-none-any.whl (52.5 kB view details)

Uploaded Python 3

File details

Details for the file upload_socials-0.2.1.tar.gz.

File metadata

  • Download URL: upload_socials-0.2.1.tar.gz
  • Upload date:
  • Size: 48.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.6

File hashes

Hashes for upload_socials-0.2.1.tar.gz
Algorithm Hash digest
SHA256 21d029f2201b0f55b6ce99e857cd57a1a13e9108c40296942424b50ee56ba368
MD5 999a8ae7be60af1904b56e65e829e460
BLAKE2b-256 c1d9e088ff08e9a3617aaaef277d855026be17e55ce15770c7a2ae296785c0cb

See more details on using hashes here.

File details

Details for the file upload_socials-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: upload_socials-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 52.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.6

File hashes

Hashes for upload_socials-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 3ab1e9f175ad7ab0d881f36e031efa9a9483a13da5503bf9451bff7f2bbac74c
MD5 1cd14920d29f8e36ad3b6c05c7f359d0
BLAKE2b-256 161201102da83c606efc86f6e8151b7bf5c0ee7d99ec0b985cb79fa7ea1bddf7

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