The simple yt-dlp-api server is for extracting YouTube video information with YouTube video URL.
- Preparing the Linux-like operating system.
- Preparing the
Python 3.7+version in the operating system. - Install the
pipenvwith running thepip3 install -U pipenvcommand. - Running the
pipenv installto create the virtual environment. - Modifying the
yt-dlp-api.servicefile with theyt-dlp-api.service.examplefile. - Copying the
yt-dlp-api.servicefile to the/etc/systemd/system/folder. - Running the
sudo systemctl daemon-reloadto reload the systemd daemon. - Running the
sudo systemctl enable --now yt-dlp-api.serviceto enable and start the service. - Enjoy it!
- Sometimes the
yt-dlpare updated frequently and it can run thepipenv run pip install -U yt-dlpcommand to upgrade this package and run thesystemctl restart yt-dlp-api.servicecommand to restart the daemon service. - Since the yt-dlp
2024.11.04version has been released, the minimal Python version is3.9and theyt-dlp-apiwill support Python3.9at least becasue of compatibility.