유튜버 다운로드
Github Source Link
출처 : https://opentutorials.org/module/3811
pip install pytube
모듈 Import
import pytube
from pytube.cli import on_progress
url = "유튜브url"
yt = pytube.YouTube(url, on_progress_callback=on_progress)
save_dir = "./" # 저장경로
yt.streams.filter(progressive=True, file_extension="mp4")\
.order_by("resolution")\
.desc()\
.first()\
.download(save_dir)