Giter VIP home page Giter VIP logo

real-url-proxy-server's Introduction

real-url-proxy-server

说明

通过斗鱼、虎牙及Bilibili房间号直接访问直播源的代理服务器。

运行

python3 real-url-proxy-server.py [-h] -p PORT -r REFRESH [-l LOG_FILE]
PORT: 端口号,服务器将监听于 0.0.0.0:PORT。
REFRESH: 自动刷新间隔(秒),0表示禁止自动刷新。
LOG_FILE: 日志文件路径,为空则仅输出至控制台。

访问

斗鱼
  8M:http://xxx.xxx.xxx.xxx:xxxx/douyu/房间号
  4M:http://xxx.xxx.xxx.xxx:xxxx/douyu/房间号/4000
  2M:http://xxx.xxx.xxx.xxx:xxxx/douyu/房间号/2000

虎牙
  4M:http://xxx.xxx.xxx.xxx:xxxx/huya/房间号
  2M:http://xxx.xxx.xxx.xxx:xxxx/huya/房间号/2000p

Bilibili
  http://xxx.xxx.xxx.xxx:xxxx/bilibili/房间号

刷新

程序首次获取到实际直播源地址后会缓存下来,后续访问会使用缓存地址。在指定的时间间隔后会自动刷新实际直播源地址,或者通过访问 http://xxx.xxx.xxx.xxx:xxxx/douyu/房间号/refreshhttp://xxx.xxx.xxx.xxx:xxxx/huya/房间号/refresh 来手动刷新。

其它

获取到的实际地址会以301跳转或EXTM3U形式返回,播放端得到播放地址后,后续正常播放过程中不会再次访问代理服务器,因此服务器负载和流量均很低。本人在家中将其部署于刷了Padavan的小米路由器上,并通过OTT盒子进行观看。(斗鱼,bilibili是301跳转,虎牙会一直访问代理服务器返回#EXTM3U)

感谢

获取直播源地址使用的douyu.py、huya.py及bilibili.py代码来自于Real-Url项目,在此表示由衷的感谢!

real-url-proxy-server's People

Contributors

rain-dl avatar cniop avatar

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.