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
Release history Release notifications | RSS feed
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.10.tar.gz
(18.1 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file iyoutubeapi-0.2.10.tar.gz.
File metadata
- Download URL: iyoutubeapi-0.2.10.tar.gz
- Upload date:
- Size: 18.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c9604ba7d36e59a5cc667ae2f247509cc1248c7df601a0e5f549cf3d3fac36df
|
|
| MD5 |
d1c631a2d640e8b6355c55c1e7f6cddb
|
|
| BLAKE2b-256 |
bb792427df2a8df784fe40d45dfb52deb3e1a4e130a3adbe9621a8f6c3060058
|
File details
Details for the file iyoutubeapi-0.2.10-py3-none-any.whl.
File metadata
- Download URL: iyoutubeapi-0.2.10-py3-none-any.whl
- Upload date:
- Size: 19.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
525db8cb75f9cacf07daaed1a9312549fa9843b5abbe140740a5254d5438c9e6
|
|
| MD5 |
d336469d0bf05a106023f089d5e8fd1d
|
|
| BLAKE2b-256 |
57ea0b9d903cb98800e7612022ef26a5c39cfc846d9ecdedeeaddb6dddae2019
|