📅  最后修改于: 2023-12-03 15:35:49.192000             🧑  作者: Mango
此项目是一个基于Python开发的Youtube MP4下载器,用户可以使用该工具下载Youtube上的视频。支持Windows、MacOS和Linux操作系统。
pip install requests
pip install tqdm
youtube_mp4_downloader.py
文件。python youtube_mp4_downloader.py
from downloader import download_mp4
url = 'https://www.youtube.com/watch?v=XXXXXXXXXXX'
filename = 'my_video.mp4'
path = '/Users/username/Downloads'
download_mp4(url, filename, path)
from downloader import get_video_info
url = 'https://www.youtube.com/watch?v=XXXXXXXXXXX'
video_info = get_video_info(url)
print(video_info)
from downloader import download_mp4_tqdm
url = 'https://www.youtube.com/watch?v=XXXXXXXXXXX'
filename = 'my_video.mp4'
path = '/Users/username/Downloads'
download_mp4_tqdm(url, filename, path)
通过本工具,用户可以方便、快速地下载Youtube视频。对于对这方面有需求的用户,该项目是一个不错的选择。