Skip to main content

Innovata YouTube API

Project description

iYouTubeAPI

Innovata YouTube API

Introduction

Dependency

requests
moviepy
yt-dlp
ffmpeg
google-auth-oauthlib 
google-api-python-client

한번에 설치

pip install requests moviepy yt-dlp ffmpeg google-auth-oauthlib google-api-python-client python-dateutil

사용법

[1] 환경셋업

필수 전역변수 셋업

os.environ["GOOGLE_CREDENTIAL_PATH"] = "YOUR_GOOGLE_CREDENTIAL_PATH"
os.environ["FFMPEG_BIN_PATH"] = "YOUR_FFMPEG_BIN_PATH"

[2] 구독채널

from iyoutube import _youtube_api 
info = _youtube_api.get_subscribed_channels()
<!-- info: list -->

[3] MY 플레이리스트

from iyoutube import _youtube_api 
info = _youtube_api.get_my_playlists()
<!-- info: list -->

[4] 채널정보

from iyoutube import _yt_dlp 
info = _yt_dlp.get_channel(channel_url)
<!-- info: dict -->

[5] 채널 최신영상

from iyoutube import _yt_dlp 
info = _yt_dlp.get_channel_videos(
    channel_url, 
    days_ago=7, 
    max_videos=10,
    min_duration=60
)
<!-- info: dict -->

[6] 일반 플레이리스트

from iyoutube import _yt_dlp 
info = _yt_dlp.get_playlist(playlist_url, max_videos=None)
<!-- info: dict -->

[7] 비디오

from iyoutube import _yt_dlp 
info = _yt_dlp.get_video(video_url)
<!-- info: dict -->

[8] 오디오

from iyoutube import _yt_dlp 
info = _yt_dlp.download_audio(video_url, audio_file)
<!-- info: dict -->

[9] 검색

from iyoutube import _yt_dlp 
info = _yt_dlp.search(
    query,
    max_results=None, 
    days_ago=7, 
    duration=600,
    ytweb_filters:dict={},
)
<!-- info: dict -->

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

iyoutubeapi-0.2.0.tar.gz (19.0 kB view details)

Uploaded Source

Built Distribution

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

iyoutubeapi-0.2.0-py3-none-any.whl (19.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: iyoutubeapi-0.2.0.tar.gz
  • Upload date:
  • Size: 19.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for iyoutubeapi-0.2.0.tar.gz
Algorithm Hash digest
SHA256 551617d9eeedb95393fd2386fc443d8b0a8d9e612942e0843422081b38bd2f50
MD5 3e16c61b127697a1df7cc6c7ccebbb3a
BLAKE2b-256 39ddd223f8c62169e2b3c9bf6218c0bba39d8a065c1d44e59dfff60352c08060

See more details on using hashes here.

File details

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

File metadata

  • Download URL: iyoutubeapi-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 19.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for iyoutubeapi-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5153b2fdc4a92146a87ccf278f22f5f3a5d806b534bda5d7ee309239d08a12f8
MD5 7320288a134e7fe55a52f10b4317389c
BLAKE2b-256 2dc3d0144c4192c61cf7f3eede7972fc9b267c878c40c32070a701f9bcfbd09e

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