Skip to main content

An API server based on yt-dlp

Project description

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 &

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

youtubedlapi_server_infusiblecoder-3.7.9.tar.gz (18.4 kB view hashes)

Uploaded Source

Built Distribution

youtubedlapi_server_infusiblecoder-3.7.9-py2.py3-none-any.whl (19.3 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page