{"id":31299216,"url":"https://github.com/sosoorin/bilibilistreamhelper","last_synced_at":"2025-09-25T00:07:52.841Z","repository":{"id":316287066,"uuid":"1062704782","full_name":"sosoorin/BilibiliStreamHelper","owner":"sosoorin","description":"一个macOS上的哔哩哔哩直播推流码获取工具，快速获取直播推流信息，方便使用 OBS 等推流软件进行直播。","archived":false,"fork":false,"pushed_at":"2025-09-24T08:30:36.000Z","size":420,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-09-24T09:09:05.493Z","etag":null,"topics":["bilibili","mac","macos","macos-app","obs","swift","swiftui"],"latest_commit_sha":null,"homepage":"","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sosoorin.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-09-23T15:57:50.000Z","updated_at":"2025-09-24T08:30:39.000Z","dependencies_parsed_at":"2025-09-24T09:09:09.983Z","dependency_job_id":"69372f15-c318-4cbb-a4a5-236b2372f263","html_url":"https://github.com/sosoorin/BilibiliStreamHelper","commit_stats":null,"previous_names":["sosoorin/bilibililivestremcodeswift","sosoorin/bilibilistreamhelper"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/sosoorin/BilibiliStreamHelper","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sosoorin%2FBilibiliStreamHelper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sosoorin%2FBilibiliStreamHelper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sosoorin%2FBilibiliStreamHelper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sosoorin%2FBilibiliStreamHelper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sosoorin","download_url":"https://codeload.github.com/sosoorin/BilibiliStreamHelper/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sosoorin%2FBilibiliStreamHelper/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":276837408,"owners_count":25713387,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-24T02:00:09.776Z","response_time":97,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bilibili","mac","macos","macos-app","obs","swift","swiftui"],"created_at":"2025-09-25T00:07:50.724Z","updated_at":"2025-09-25T00:07:52.824Z","avatar_url":"https://github.com/sosoorin.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# BilibiliStreamHelper for macOS\n\n\u003cdiv align=\"center\"\u003e\n\n![Platform](https://img.shields.io/badge/Platform-macOS-blue)\n![Swift](https://img.shields.io/badge/Swift-6.0-orange)\n![SwiftUI](https://img.shields.io/badge/macOS-13.0+-green)\n![License](https://img.shields.io/badge/License-Apache%202.0-red)\n\n使用 Swift 6 + SwiftUI 开发的哔哩哔哩直播推流码获取工具。\n\n\u003c/div\u003e\n\n\u003e 不能获取推流码后，官方提供的Mac开播方法实在是太难用了！！\n\n## ✨ 主要功能\n\n- 🔐 **双重登录方式**：扫码登录 / 手动Cookie登录\n- 📺 **直播管理**：设置标题、选择分区、开启/关闭直播\n- 🔄 **推流信息获取**：自动获取RTMP服务器地址和推流码\n- 💬 **弹幕发送**：应用内直接发送弹幕\n- 📋 **便捷操作**：一键复制、配置导出\n- 🔒 **安全存储**：使用Keychain安全存储敏感信息\n\n## ⚠️ 重要提醒\n\n- 本程序仅获取推流信息，使用官方API接口，**理论上**正常使用不会影响账号安全。\n- 使用前请确保遵守B站相关条款，使用风险由用户自行承担。\n- **请务必使用本程序停止直播**（OBS停止推流≠B站下播）。\n- 推流码一次性使用，每次直播需重新获取。\n\n## 🚀 快速开始\n\n### 系统要求\n- macOS 13.0+ \n- Xcode 17.0+（开发）\n\n### 运行\n1. 下载源代码\n2. 用 Xcode 打开 `BilibiliLiveStremCodeSwift.xcodeproj`\n3. 选择 macOS 目标，运行\n\n### 使用流程\n1. **登录** → 扫码或手动输入Cookie\n2. **设置** → 输入标题，选择分区\n3. **开播** → 获取推流信息\n4. **OBS** → 配置服务器地址和推流码\n\n## 🏗️ 技术栈\n\n- **Swift 6** + **SwiftUI**\n- **URLSession** 网络请求\n- **Keychain Services** 安全存储\n- **CoreImage** 二维码生成\n\n## 🐛 常见问题\n\n- **二维码过期** → 重新生成\n- **Cookie失效** → 重新登录\n- **开播失败** → 检查分区设置\n- **人脸认证** → 用手机客户端扫码\n\n## 贡献者\n\n![cr](https://contrib.rocks/image?repo=sosoorin/BilibiliStreamHelper)\n\n## 📄 许可证\n\n [Apache License 2.0](./LICENSE)\n\n## 🙏 致谢\n\n**功能思路参考**\n- [ChaceQC/bilibili_live_stream_code](https://github.com/ChaceQC/bilibili_live_stream_code)\n\n**技术依赖**\n- [SwiftyJSON](https://github.com/SwiftyJSON/SwiftyJSON) - JSON解析\n- [Apple CryptoKit](https://developer.apple.com/documentation/cryptokit) - 加密算法\n- [SocialSisterYi/bilibili-API-collect](https://github.com/SocialSisterYi/bilibili-API-collect) - API文档参考\n\n---\n\n\u003cdiv align=\"center\"\u003e\n\n**如果有帮助请给个 ⭐️ Star！**\n\n[问题反馈](https://github.com/sosoorin/BilibiliStreamHelper/issues) • [功能建议](https://github.com/sosoorin/BilibiliStreamHelper/issues)\n\n\u003c/div\u003e","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsosoorin%2Fbilibilistreamhelper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsosoorin%2Fbilibilistreamhelper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsosoorin%2Fbilibilistreamhelper/lists"}