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

You need SESSION_TOKEN for upload video. How to get Session Token?

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

Uploaded Source

File details

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

File metadata

  • Download URL: ytstudio-1.0.5.tar.gz
  • Upload date:
  • Size: 17.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.8.1 pkginfo/1.7.0 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.7

File hashes

Hashes for ytstudio-1.0.5.tar.gz
Algorithm Hash digest
SHA256 62cd7428a7199dccb22f3d460ff4eaa51f61c038f60afb3be55c67774fd39648
MD5 47239970a4b04fe1f2d49f5410313ca4
BLAKE2b-256 50399468f2a4ec546581e4a7da2344530a5806ab015dba421918e8643d13f590

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