Skip to main content

Unofficial API for Youtube Studio.

Project description

Youtube Studio

Unofficial Async YouTube Studio API. Set of features limited or not provided by official YouTube API

This is the Python version of this project. All thanks going to @adasq :)

Installation

You can install with PIP.

pip install ytstudio

Features

  • Async
  • Uploading Video (NOT LIMITED - official API's videos.insert charges you 1600 quota units)
  • Deleting Video

Examples

Note: You need cookies. Use an cookie manager(EditThisCookie) for needed cookies.

Upload Video

from ytstudio import Studio
import asyncio
import os

def progress(uploaded, total):
    print(f"{uploaded}/{total}", end="\r")
    pass

async def main():
    yt = Studio({'VISITOR_INFO1_LIVE': '', 'PREF': '', 'LOGIN_INFO': '', 'SID': '', '__Secure-3PSID': '', 'HSID': '', 'SSID': '', 'APISID': '', 'SAPISID': '', '__Secure-3PAPISID': '', 'YSC': '', 'SIDCC': ''})
    await yt.login()
    sonuc = await yt.uploadVideo(os.path.join(os.getcwd(), "deneme.mp4"), title="Hello World!", description="Uploaded by github.com/yusufusta/ytstudio"  progress=progress)
    print(sonuc['videoId']) # Print Video ID

loop = asyncio.get_event_loop()
loop.run_until_complete(main())

Author

Yusuf Usta, yusuf@usta.email

Note

This library is in no way affiliated with YouTube or Google. Use at your own discretion. Do not spam with this.

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

ytstudio-1.0.1.tar.gz (4.8 kB view details)

Uploaded Source

File details

Details for the file ytstudio-1.0.1.tar.gz.

File metadata

  • Download URL: ytstudio-1.0.1.tar.gz
  • Upload date:
  • Size: 4.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4

File hashes

Hashes for ytstudio-1.0.1.tar.gz
Algorithm Hash digest
SHA256 72342131e6f0a3f4681b5c121d67ec46b9d20e5dddb02bf4916c8bcd93f6de18
MD5 24919683bab0b12679f922a2b2f6ab09
BLAKE2b-256 3c57ea32d5953da11d0d14ba23df7b63499e92f6af21c5626158cf4ccbb6b296

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page