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.0.tar.gz
(4.8 kB
view details)
File details
Details for the file ytstudio-1.0.0.tar.gz
.
File metadata
- Download URL: ytstudio-1.0.0.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
Algorithm | Hash digest | |
---|---|---|
SHA256 | dafa85d492bea0f69ccf82c7dd5957752b09aae56950593d93baaceb5b8e22e4 |
|
MD5 | 0fb18c7204940b2bd6988000a7a09391 |
|
BLAKE2b-256 | 92f319d0a9620d025dce08e9ac29685f7289644a9e62a0cee74829b8d357ed50 |