/youtubedlapi-server-infusiblecoder

A REST API server for getting the info for videos from different sites, powered by yt-dlp. With support for Docker and Kubernetes with auto scaling

Primary LanguagePythonThe UnlicenseUnlicense

PyPI Downloads Downloads Downloads License

youtubedlapi-server-infusiblecoder

A REST API server for getting the info for videos from different sites, powered by yt-dlp. The installation instructions and the documentation are available at Read the Docs.

About

youtubedlapi-server-infusiblecoder is released to the public domain, read the License for more info.

NEW Example Usage

uvicorn youtubedlapi_server_infusiblecoder.app:app --host 127.0.0.1 --port 9191 --workers 1 --log-level info

or

uvicorn youtubedlapi_server_infusiblecoder.app:app --host 0.0.0.0 --port 9191 --workers 1 --log-level info

or for running in bacground

nohup uvicorn youtubedlapi_server_infusiblecoder.app:app --host 0.0.0.0 --port 9191 --workers 1 --log-level info &

Run in BG with A Repeted Job To Restart Server When Its Down

create a script named 'bgapi.sh' add below code in the file

while true
do
uvicorn youtubedlapi_server_infusiblecoder.app:app --host 0.0.0.0 --port 9191 --workers 1 --log-level info
sleep 2500
done

save it then run this command to run it in the BG

nohup ./bgapi.sh &

Old Example Usage

youtubedlapi-server-infusiblecoder -p 8000 --host 127.0.0.1 --number-processes 1

or

youtubedlapi-server-infusiblecoder -p 9191 --host 0.0.0.0 --number-processes 1

or for running in bacground

nohup youtubedlapi-server-infusiblecoder -p 9191 --host 0.0.0.0 --number-processes 1 &

Run in BG with A Repeted Job To Restart Server When Its Down

create a script named 'bgapi.sh' add below code in the file

while true
do
youtubedlapi-server-infusiblecoder -p 9191 --host 0.0.0.0 --number-processes 1
sleep 2500
done

save it then run this command to run it in the BG

nohup ./bgapi.sh &