Download YouTube videos as MP4 files
Project description
yt2mp4
Download YouTube videos as MP4 files (and other formats)
Get geckodriver
Linux (Debian)
sudo apt install firefox-geckodriver -y
Other
Figure it yourself
Installation
From PyPI
pip3 install yt2mp4
From GitHub
pip3 install git+https://github.com/donno2048/yt2mp4
Usage
In Python
from yt2mp4 import download
download("dQw4w9WgXcQ", outname='output.mp4') # dowload video from https://www.youtube.com/watch?v=dQw4w9WgXcQ and name it output.mp4
# will also work:
# download("https://www.youtube.com/watch?v=dQw4w9WgXcQ", output="output.mov")
# download("https://youtu.be/dQw4w9WgXcQ")
In cmd
yt2mp4 # or python3 -m yt2mp4
# yt2webm
# yt2mkv
# yt2flv
# yt2wmv
# yt2avi
# yt2mov
# yt2m4v
# yt2mp3
Supported formats
- mp4
- webm
- mkv
- flv
- wmv
- avi
- mov
- m4v
- mp3 (auto format as audio)
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
yt2mp4-1.0.1.tar.gz
(3.3 kB
view hashes)
Built Distribution
yt2mp4-1.0.1-py3-none-any.whl
(3.8 kB
view hashes)