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.2.tar.gz (4.8 kB view details)

Uploaded Source

File details

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

File metadata

  • Download URL: ytstudio-1.0.2.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.2.tar.gz
Algorithm Hash digest
SHA256 49e05f263920c8c39488fa5a7c9dafe9739b92e0db04cc860f64df96106d47cd
MD5 64e5c22100f2549a8686ee88966a3ebb
BLAKE2b-256 deda19f21a0ca73400a125e3797d637ebab9285fc92fc7d32631c181636fab81

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