Skip to main content

A Python package to interact with YouTube Data API v3.

Project description

YouTube Gears

Example

import logging

import ytb_gears


def main():
    logging.basicConfig(level=logging.INFO)

    client_secret_file = "client_secret.json"
    video_path = "test.mp4"

    if ytb_gears.today_already_uploaded(client_secret_file):
        return

    print(f"即将上传视频: {video_path}")

    ytb_gears.upload(
        video_path,
        client_secret_file,
        "YouTube Gears Test Video",
        "Uploaded by YouTube Gears",
        "ytb-gears",
        "22",
        "unlisted",
    )


main()

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

ytb_gears-0.2.0.tar.gz (15.7 kB view details)

Uploaded Source

Built Distribution

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

ytb_gears-0.2.0-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

File details

Details for the file ytb_gears-0.2.0.tar.gz.

File metadata

  • Download URL: ytb_gears-0.2.0.tar.gz
  • Upload date:
  • Size: 15.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.5.18

File hashes

Hashes for ytb_gears-0.2.0.tar.gz
Algorithm Hash digest
SHA256 9705842e64b066eb9b5b8a3b7051b1cd7ec88d3c37e6b7a386c2a5ed4c274998
MD5 b64d16c8636f5543b7f2e56bbffc77c4
BLAKE2b-256 0100f3927ca89661f47c0a136925c979afe3c23f508d72942f2e81a36679e300

See more details on using hashes here.

File details

Details for the file ytb_gears-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: ytb_gears-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 3.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.5.18

File hashes

Hashes for ytb_gears-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ea2df8dd1aaa6736e36c5432be2abdb8586d7190b819e968f092884f23b9c31e
MD5 e988f6eb074f47ab67be362be471ea1d
BLAKE2b-256 fb964694122c703ef6f28eefd1ae5ae730bddcbfcad9145ef99120d77f76bbc1

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