获取斗鱼&虎牙&哔哩哔哩&抖音&快手等 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
乌帮图
人生得意须尽欢
乌帮图
Create a Video Membership app using FastAPI & NoSQL

Video Membership Create a Video Membership app using FastAPI & NoSQL. In this series, we're going to explore building a membership application using F

Coding For Entrepreneurs 69 Dec 25, 2022
Video processing routines for SciPy

scikit-video Video Processing SciKit BETA Video processing algorithms, including I/O, quality metrics, temporal filtering, motion/object detection, mo

Alex Izvorski 119 Dec 27, 2022
Techie Sneh 17 Nov 23, 2021
A GUI based datamoshing apllication for everyone! Apply this glitch to your videos and gifs. Supports all video formats!

A GUI based datamoshing apllication for everyone! Apply this glitch to your videos and gifs. Supports all video formats!

Akascape 131 Dec 31, 2022
Python retagging utility for mkv files using mkvmerge.

pyretag A python script to retag mkv files. Setting Up pip install pyfiglet pip install rich Move the mkv files to input folder.

25 Dec 04, 2022
Simple VLC-based media player that can play multiple videos at the same time

Screenshots About Simple VLC-based media player that can play multiple videos at the same time. You can play as many videos as you like, the only limi

161 Jan 05, 2023
Telegram Video Chat Video Streaming bot 🇱🇰

🧪 Get SESSION_NAME from below: Pyrogram 🎭 Preview ✨ Features Music & Video stream support MultiChat support Playlist & Queue support Skip, Pause, Re

DOOZY YEZ 5 Jun 26, 2022
Add a "flame" effect on each hand's index onto a video stream.

Add a "flame" effect on each hand's index onto a video stream. recording.webm.mov This script is just a quick hack, it's a bit of glue between mediapi

Paul Willot 7 Sep 15, 2022
I have baked a custom integration to control Eufy Security Cameras and access RTSP and P2P stream if possible.

I have baked a custom integration to control Eufy Security Cameras and access RTSP (real time streaming protocol) and P2P (peer to peer) stream if pos

Fuat Akgün 422 Jan 01, 2023
goal: render videos on eu4's timeline function

Rendering Videos on the EU4 Time Line This repository contains code to create an eu4-savefile that plays back a video in question.

29 Dec 24, 2022
Python Simple Mass Video Clipper (PSMVC)

Python Simple Mass Video Clipper (PSMVC) PSMVC é um gerador de cortes via terminal construído em python. Uso Basta abrir o arquivo start.py Dependenci

Bruno 2 Oct 16, 2021
PyAV is a Pythonic binding for the FFmpeg libraries.

PyAV is a Pythonic binding for the FFmpeg libraries. We aim to provide all of the power and control of the underlying library, but manage the gritty details as much as possible.

PyAV 1.8k Jan 01, 2023
Program to play videos with props in Apex Legends

R5Fresh A video player for the Apex Legends mod R5Reloaded

9 Nov 13, 2022
Uncompress DEFLATE streams in pure Python

stream-deflate Uncompress DEFLATE streams in pure Python. Work in progress. This README serves as a rough design spec. Installation pip install stream

Michal Charemza 7 Oct 13, 2022
Stream deck using Arduino and Python

Stream deck using Arduino and Python This is a little project I started due to the fact that I wanted to stream and didn't want to spend lots on a sim

Tal Cherniavsky 2 Feb 11, 2022
GStreamer Inspector GUI

gst-explorer GStreamer GUI Interface Tool GUI interface for inspecting GStreamer Plugins, Elements and Type Finders. Expects Python3 Qt, PyQt5 and GSt

Jetsonhacks 31 Nov 29, 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
Autocut the Twitch VODs based on Marker

Markut Given the VOD of the stream and the markers that are exported as a CSV file, generate a video using ffmpeg that cuts out part of the VOD accord

Tsoding 18 Dec 19, 2022
Convert lecture videos to slides in one line. Takes an input of a directory containing your lecture videos and outputs a directory containing .PDF files containing the slides of each lecture.

Convert lecture videos to slides in one line. Takes an input of a directory containing your lecture videos and outputs a directory containing .PDF files containing the slides of each lecture.

Sidharth Anand 12 Sep 10, 2022
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