获取斗鱼&虎牙&哔哩哔哩&抖音&快手等 48 个直播平台的真实流媒体地址(直播源)和弹幕,直播源可在 PotPlayer、flv.js 等播放器中播放。

Overview

Real-Url

说明

没想到还有这么多朋友发 issue 和邮件咨询问题,感谢大家的支持 🎈 !因为有时很忙,回复和提交代码的周期会有点长,抱歉哦 😋

这个仓库存放的是:获取一些直播平台真实流媒体地址(直播源)和弹幕的 Python 代码实现。获取的地址经测试,均可在 PotPlayer、VLC、DPlayer(flv.js + hls.js)等播放器中播放。

🤘 👌 🤙 🙏 🐉 👉 :如果该项目能帮助到您,欢迎 star 和 pr;或在您的项目中标注 Real-Url 为参考来源。

目前已实现:

53 个直播平台的直播源获取:斗鱼直播、虎牙直播、哔哩哔哩直播、战旗直播、网易 CC 直播、火猫直播、企鹅电竞、YY 直播、一直播、快手直播、花椒直播、映客直播、西瓜直播、触手直播(已倒闭)、NOW 直播、抖音直播,爱奇艺直播、酷狗直播、龙珠直播、PPS 奇秀直播、六间房、17 直播、来疯直播、优酷轮播台、网易 LOOK 直播、千帆直播、陌陌直播、小米直播、迅雷直播、京东直播、企鹅体育、人人直播、棉花糖直播、九秀直播、羚萌直播、95秀、新浪疯播、红人直播、艾米直播、KK直播、酷我聚星、乐嗨直播、秀色直播、星光直播、我秀直播、热猫直播、艺气山直播、AcFun 直播、猫耳FM、畅秀阁、Twitch、TikTok、央视频、PP体育。

18 个直播平台的弹幕获取:斗鱼直播、虎牙直播、哔哩哔哩直播、快手直播、火猫直播、企鹅电竞、花椒直播、映客直播、网易 CC 直播、酷狗直播、龙珠直播、PPS 奇秀、搜狐千帆、战旗直播、来疯直播、网易 LOOK 直播、AcFun 直播、艺气山直播。

运行

  1. 项目使用了很简单的 Python 代码,仅在 Python 3 环境运行测试。
  2. 具体所需模块请查看 requirements.txt
  3. 获取斗鱼和爱奇艺的直播源,需 JavaScript 环境,可使用 node.js。爱奇艺直播里有个参数是加盐的 MD5,由仓库中的 iqiyi.js 生成。
  4. 每个平台的直播源和弹幕获取功能相互独立,以后再整合。弹幕食用:python main.py

反馈

有直播平台失效或新增其他平台解析的,可发 issue

更新

2021.05.05:新增 PP体育。

2021.05.03:新增 央视频。

2021.05.02:新增 Twitch、TikTok。

2021.05.01:新增畅秀阁、猫耳FM。

2020.12.20:修复直播源:抖音、艺气山、花椒、快手、来疯、龙珠、PPS、人人直播、17live 可能需要挂代理。

2020.10.17:修复:西瓜直播、YY直播。

2020.09.26:更新:虎牙直播源;注释掉未完成的 YY 直播弹幕功能。

2020.09.12:新增:斗鱼添加一个从PC网页端获取直播源的方法,可选线路和清晰度;新增requirements.txt文件;更新代码。

2020.08.18:更新快手直播源,现在播放链接需要带参数;更新快手直播弹幕,直接用 protobuf 序列化;新增 AcFun、艺气山两个平台的弹幕功能。

2020.08.08:新增 AcFun 直播、艺气山直播;更新:哔哩哔哩直播、虎牙直播、红人直播;优化:斗鱼直播。

2020.07.31:新增 19 个直播平台,详见上面说明;更新YY直播,现在可以获取最高画质;优化战旗直播、优酷直播代码;

2020.07.25:新增网易 LOOK 直播弹幕获取;修复斗鱼直播源;新增陌陌直播源。

2020.07.19:新增来疯直播弹幕获取

2020.07.18:新增酷狗、龙珠、PPS奇秀、搜狐千帆、战旗直播等5个平台的弹幕获取

2020.07.11:新增网易CC直播弹幕获取

2020.07.05:新增花椒直播、映客直播弹幕获取;更新虎牙直播源

2020.06.25:新增 🐧 企鹅电竞弹幕获取

2020.06.19:新增火猫直播弹幕获取

2020.06.18:新增弹幕功能

  • 添加斗鱼、虎牙、哔哩哔哩和快手 4 个平台的弹幕获取。后续添加其他平台。
  • 实现弹幕功能的代码和思路主要来自:danmakuks_barrage,感谢两位大佬!

2020.05.30:更新虎牙直播。

2020.05.25:更新哔哩哔哩直播。

  • 默认获取最高画质,不同清晰度取决于请求参数中的 qn。
  • 增加 .m3u8 格式播放链接的获取方法。

2020.05.23:更新17直播、虎牙直播

2020.05.19:更新火猫、快手、酷狗、PPS

2020.05.08:新增优酷轮播台、look 直播、千帆直播;

  • 新增优酷轮播台:优酷轮播台是优酷直播下的一个子栏目,轮播一些经典电影电视剧,个人感觉要比其他直播平台影视区的画质要好,而且没有平台水印和主播自己贴的乱七八糟的字幕遮挡。
  • 新增 LOOK 直播:LOOK 直播是网易云音乐旗下的直播平台。
  • 新增千帆直播:千帆直播是搜狐旗下的直播平台。

2020.05.01:新增优酷的来疯直播。

2020.04.30:新增17直播。

2020.04.24:修复虎牙、哔哩哔哩、快手、爱奇艺。

2020.02.26:更新一直播。

2020.01.18:更新抖音直播。

2020.01.10:新增酷狗直播、龙珠直播、PPS奇秀直播、六间房。

2020.01.09:新增爱奇艺直播。

2020.01.07:新增抖音直播;删除一个直播平台。

2020.01.03:修复快手直播,请求移动网页版。

2019.12.31:修复快手直播。

2019.12.07:修复哔哩哔哩直播。

2019.12.04:更新斗鱼直播,新增一种获取方式。

2019.11.24:新增收米直播。

2019.11.18:新增西瓜直播;触手直播;NOW直播。

2019.11.18:新增一直播;快手直播;花椒直播;映客直播。

2019.11.17:新增火猫直播;新增企鹅电竞;新增YY直播。

2019.11.16:新增战旗tv直播源;新增网易CC直播。

2019.11.09:新增哔哩哔哩直播源。

2019.11.03:新增虎牙直播源。

2019.11.02:修复斗鱼预览地址获取的方法;新增未开播房间的判断。

鸣谢

感谢 JetBrains 提供的 free JetBrains Open Source license

JetBrains-logo

Owner
乌帮图
人生得意须尽欢
乌帮图
A Telegram bot to convert videos into x265/x264 format via ffmpeg.

Video Encoder Bot A Telegram bot to convert videos into x265/x264 format via ffmpeg. Configuration Add values in environment variables or add them in

Adnan Ahmad 82 Jan 03, 2023
Source files for the data lake demo video using the AWS TICKIT database

Data Lake Demo Source code for video demonstration detailed in the post, Building a Simple Data Lake on AWS . Build a simple data lake on AWS using a

Gary A. Stafford 97 Dec 23, 2022
Home Assistant custom component for viewing IP cameras RTSP stream in real time using WebRTC technology

WebRTC Camera Home Assistant custom component for viewing IP cameras RTSP stream in real time using WebRTC technology. Based on: Pion - pure Go implem

Alex X 739 Dec 30, 2022
Youtube as covert-channel - Control systems remotely and execute commands by uploading videos to Youtube

covert-tube A program to control systems remotely by uploading videos to Youtube using Python to create the videos and the listener, emulating some ma

Ricardo Ruiz 101 Nov 01, 2022
Python package to display video in GUI using OpenCV-Python and PySide6

Python package to display video in GUI using OpenCV-Python and PySide6. Introduction cv2PySide6 is a package which provides utility classes and functi

3 Jun 06, 2022
Video Object Segmentation(VOS) From Zero to HeroVideo Object Segmentation(VOS) From Zero to Hero

Video Object Segmentation(VOS) From Zero to Hero! Goal 1:train a two layers cnn model for vos. Finish! see model.py FFNet for more diteal.(2021.9.30)

1 Oct 22, 2021
This plugin generates json files used by deovr allowing you to play 2d and 3d video's using the player

deovr-plugin This plugin generates json files used by deovr allowing you to play 2d and 3d video's using the player. Deovr looks for an index file /de

10 Sep 29, 2022
Automatically logs into VTOP and can perform certain tasks

VTOP_Login Automatically logs into VTOP and can perform certain tasks To run the

Jatin 1 Jan 30, 2022
In this project, we will be blurring the background in a live video feed

In this project, we will be blurring the background in a live video feed. This can be further integrated into online meetings, streamings etc.

Hassan Shahzad 2 Jan 06, 2022
Program to play videos with props in Apex Legends

R5Fresh A video player for the Apex Legends mod R5Reloaded

9 Nov 13, 2022
Playing videos through S3 buckets (Wasabi, AWS, etc.) through client-side VideoJS player

Playing videos through S3 buckets (Wasabi, AWS, etc.) through client-side VideoJS player without incurring ingress/egree traffic on EC2 Instance.

Syed Umar Arfeen 8 Mar 28, 2022
This program is to make a video based on Deep Dream

This program is to make a video based on Deep Dream. The program is modified from DeepDreamAnim and DeepDreamVideo with additional functions for bleding two frames based on the optical flows. It also

Aertist 23 Jan 22, 2022
Automatic video generator for local news

Automatic video generator for local news

Gabriel Monteiro 2 Jan 11, 2022
A Python media index

pyvideo https://pyvideo.org is simply an index of Python-related media records. The raw data being used here comes out of the pyvideo/data repo. Befor

pyvideo 235 Dec 24, 2022
Search a video semantically with AI.

Which Frame? Search a video semantically with AI. For example, try a natural language search query like "a person with sunglasses". You can also searc

David Chuan-En Lin 1 Nov 06, 2021
Jio TV Server - Watch TV right from your laptop

Jio-PyServer Jio TV - Python Server Watch TV right from your laptop! Requirements: Python 3.X Internet Access A Jio Account Known Issues: Channel Stre

Elvis Tony 11 Apr 05, 2022
A python youtube search module

A python youtube search module

Fayas Noushad 4 Dec 01, 2021
Stream anime from kaa.si with python

kaa.si-cli Stream anime using MPV player from kaa.si with python

Muhammad Rovino Sanjaya 52 Dec 24, 2022
Real-time video and audio streams over the network, with Streamlit.

streamlit-webrtc Example You can try out the sample app using the following commands.

Yuichiro Tachibana (Tsuchiya) 648 Jan 01, 2023
Simple nightcore song+video maker

nighty nighty is a simple nightcore song maker (+ video) Installation clone the repo wherever you want git clone https://www.github.com/DanyB0/nighty

DanyB0 2 Oct 02, 2022