Code Monkey home page Code Monkey logo

real-url-api's Introduction

各直播平台直播流接口

说明

看到了wbt5的github仓库real-url,觉得不给写成一个接口着实太麻烦了,花了几小时时间把各个脚本整合成了服务。

再次感谢wbt5的开源!

项目详情稍后会在我的博客中说明,欢迎大家留言吼。我的博客:PYDUCK

支持的平台

本项目支持的平台与wbt5的real-url项目支持的平台一致,因为用的是人家的脚本。

关于维护

由于本身有工作,再加上下班就躺,所以有问题请发issue,我会用上班摸鱼的时间去看。

运行环境

Docker运行:

docker pull miven/real-url-api
docker run -d --restart=always -p 7000:7000 miven/real-url-api

首先要有python3.6及以上

然后在项目路径下运行:

pip install -r requirements.txt

具体兄弟们自行测试吧,按理说没啥问题。

部署

linux可以使用gunicorn部署。

gunicorn -w 4 -b 127.0.0.1:8080 flask_server:app
-c CONFIG, --config=CONFIG 设定配置文件。
-b BIND, --bind=BIND 设定服务需要绑定的端口。建议使用HOST:PORT。 
-w WORKERS, --workers=WORKERS 设置工作进程数。建议服务器每一个核心可以设置2-4个。 
-k MODULE 选定异步工作方式使用的模块。

windows用tornado之类的也可,还是建议直接跑吧。

python flask_server.py

mac的话原谅我穷。

接口地址

http://api.pyduck.com/live-api/get-url

接口免费,服务器性能有限,请爱惜。

接口文档请访问

http://api.pyduck.com/live-api/api-docs

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.