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 -->
Metadata
Release files for iyoutubeapi 0.2.10
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| iyoutubeapi-0.2.10.tar.gz | 18.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| iyoutubeapi-0.2.10-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 37.1 kB
Release files / iyoutubeapi-0.2.10.tar.gz
| Download URL | iyoutubeapi-0.2.10.tar.gz |
|---|---|
| Size | 18.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c9604ba7d36e59a5cc667ae2f247509cc1248c7df601a0e5f549cf3d3fac36df
|
|
BLAKE2b-256 checksum How to use checksums |
bb792427df2a8df784fe40d45dfb52deb3e1a4e130a3adbe9621a8f6c3060058
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.9
|
Release files / iyoutubeapi-0.2.10-py3-none-any.whl
| Download URL | iyoutubeapi-0.2.10-py3-none-any.whl |
|---|---|
| Size | 19.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
525db8cb75f9cacf07daaed1a9312549fa9843b5abbe140740a5254d5438c9e6
|
|
BLAKE2b-256 checksum How to use checksums |
57ea0b9d903cb98800e7612022ef26a5c39cfc846d9ecdedeeaddb6dddae2019
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.9
|