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.1.1.tar.gz (32.0 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.1.1-py3-none-any.whl (33.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: upload_socials-0.1.1.tar.gz
  • Upload date:
  • Size: 32.0 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.1.1.tar.gz
Algorithm Hash digest
SHA256 67103b4f4449a03e5af44b9bda18e176104df75ae4c8c0272f77430dacf2f214
MD5 ab8cbd7729c34462bcfa5f21b73e0806
BLAKE2b-256 13d11fa377bc7fd6e7cc8b5d422f11fc7a276a0b0bac1c08ae526cc2fef44f57

See more details on using hashes here.

File details

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

File metadata

  • Download URL: upload_socials-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 33.7 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.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c433c6c8276d8b799d36c909fd3988c6fb23e38cf3c6b50403f14b921daf2910
MD5 8b0b002b37b53425aee3cf61197ddc1c
BLAKE2b-256 46ed7ce62ec475eeaec714d9aaf5f604be436817cabf9bc8fe0290829d7d9b8d

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