Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/borber/seam
获取多直播平台的直播源
https://github.com/borber/seam
Last synced: 2 days ago
JSON representation
获取多直播平台的直播源
- Host: GitHub
- URL: https://github.com/borber/seam
- Owner: Borber
- License: mit
- Created: 2020-03-24T12:05:24.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2024-01-22T09:10:14.000Z (11 months ago)
- Last Synced: 2024-12-17T22:00:28.290Z (9 days ago)
- Language: Rust
- Homepage: https://t.me/seam_rust
- Size: 1.71 MB
- Stars: 887
- Watchers: 12
- Forks: 108
- Open Issues: 46
-
Metadata Files:
- Readme: README.md
- License: LICENSE-MIT
Awesome Lists containing this project
README
Seam
> 原 `SBtream` 项目, 经历 python 不成熟的模仿, Java 重构烂尾, 目前使用 rust 进行重构开发
多平台直播源地址获取
# 待办
欢迎各位大佬 PR , 积极响应, 友善沟通, 快速 CR, 给您最好的开源体验
- [ ] GUI 从获取模式切换为订阅模式
- [ ] 添加日志模块, 以便于用户反馈问题
- [ ] 输出日志文件
- [ ] 链接识别
- 规定每个平台都需要实现判断一个链接是否是自己的, 并返回正确的 rid
- [ ] 提取 CLI GUI 公共模块
- [ ] util
- [ ] config
- 即使 cli 和 gui 有部分不重叠的部分, 但应该还是重叠部分更多
- [ ] I18N
- [ ] GUI action 添加便携版本, 方便已经安装了 WebView2 的用户使用# GUI
![GUI](assets/gui.png)
## [详情](crates/gui/README.md)
# CLI
```bash
❯ .\seam.exe -l douyu -i 88080
http://url1http://url2
```## [详情](crates/cli/README.md)
# 下载
[Releases · seam](https://github.com/Borber/seam/releases) 下载 `GUI`/`CLI`可执行文件
# 使用
| **平台** | **代号** | **`` 位置** | **详情** | **弹幕** |
| ------------------------------------- | -------- | ------------------------------------------------------------------------ | ------------ | -------- |
| [B 站](https://live.bilibili.com/) | bili | `https://live.bilibili.com/` | ✅ | ✅ |
| [斗鱼](https://www.douyu.com/) | douyu | `https://www.douyu.com/` 或 `https://www.douyu.com/xx/xx?rid=` | ✅ | |
| [抖音](https://live.douyin.com/) | douyin | `https://live.douyin.com/` | ✅ | |
| [虎牙](https://huya.com/) | huya | `https://huya.com/` | | |
| [快手](https://live.kuaishou.com/) | ks | `https://live.kuaishou.com/u/` | | |
| [CC](https://cc.163.com/) | cc | `https://cc.163.com/` | | |
| [花椒](https://www.huajiao.com/) | huajiao | `https://www.huajiao.com/l/` | | |
| [艺气山](https://www.173.com/) | yqs | `https://www.173.com/` | | |
| [棉花糖](https://www.2cq.com/) | mht | `https://www.2cq.com/` | | |
| [kk](https://www.kktv5.com/) | kk | `https://www.kktv5.com/show/` | | |
| [千帆](https://qf.56.com/) | qf | `https://qf.56.com/` | | |
| [Now](https://now.qq.com/) | now | `https://now.qq.com/pcweb/story.html?roomid=` | | |
| [映客](https://www.inke.cn/) | inke | `https://www.inke.cn/liveroom/index.html?uid=` | | |
| [afreeca](https://afreecatv.com/) | afreeca | `https://bj.afreecatv.com/` | | |
| [panda](https://www.pandalive.co.kr/) | panda | `https://www.pandalive.co.kr/channel/` | | |
| [flex](https://www.flextv.co.kr/) | flex | `https://www.flextv.co.kr/channels/` | | |
| [wink](https://www.winktv.co.kr/) | wink | `https://www.winktv.co.kr/channel/` | | |# 配置
`config.toml` 放置在 `seam` 可执行文件所在目录下
```toml
# 播放器路径或命令
# 请自行安装播放器, 请确认它可以通过命令行+链接打开视频文件
[play]
# potplayer 样例
# bin = "C:\\Program Files (x86)\\Pure Codec\\x64\\PotPlayerMini64.exe"
bin = "mpv"
# 播放器参数
args = []# headers 支持所有合法 http 请求头字段
# global 为全局请求头, 会被各平台请求头覆盖
# 请注意 不要覆盖虎牙的 user-agent, 否则会导致获取失败
[headers.global]
# user-agent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/115.0.0.0 Safari/537.36 Edg/115.0.1901.200"# 抖音 cookie 必须
[headers.douyin]
cookie = "xxxx"# 快手 cookie 必须
[headers.ks]
cookie = "xxxx"# 斗鱼设置登录账户 cookie 情况下可以获取到备用线路高清源
[headers.douyu]
cookie = "xxxx"# [rid]: 房间号
# [title]: 标题
# [time]: 时间戳
# [date]: 日期
[file_name]
# 录制文件标题
video = "[rid]-[title]-[date]-[time]"
# danmu文件标题
danmu = "[rid]-[title]-[date]-[time]"```
> cookie 获取方法: [额外说明](./doc/配置说明.md)
# 路线
[seam](https://github.com/users/Borber/projects/4/views/1)
# 相关项目
- [seamui](https://github.com/kirito41dd/seamui) 由 [kirito41dd](https://github.com/kirito41dd) 开发的`seam`图形化界面
- [SeamPotPlayer](https://github.com/chen310/SeamPotPlayer/) 由[chen310](https://github.com/chen310) 开发, 直接在 PotPlayer 中调用 seam 播放直播## 贡献者
[![GitHub Contributors](https://contrib.rocks/image?repo=Borber/seam)](https://github.com/Borber/seam/graphs/contributors)
# 感谢
- [wbt5/real-url](https://github.com/wbt5/real-url/)
- [banner](https://textkool.com/en/ascii-art-generator?hl=default&vl=default&font=Chunky&text=SEAM)
- [手把手教你破解斗鱼 sign 算法](https://zhuanlan.zhihu.com/p/107330805)## Star History