{"id":46949261,"url":"https://github.com/orzogc/acfunlive","last_synced_at":"2026-03-11T07:42:36.712Z","repository":{"id":43044305,"uuid":"269884018","full_name":"orzogc/acfunlive","owner":"orzogc","description":"AcFun直播通知和下载助手","archived":false,"fork":false,"pushed_at":"2025-03-13T07:21:57.000Z","size":533,"stargazers_count":94,"open_issues_count":4,"forks_count":21,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-13T08:27:01.013Z","etag":null,"topics":["acfun","live"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/orzogc.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}},"created_at":"2020-06-06T05:55:30.000Z","updated_at":"2025-03-13T07:21:54.000Z","dependencies_parsed_at":"2025-03-13T08:22:58.217Z","dependency_job_id":"304c5deb-385e-4e1e-94f0-63fc5d1d247b","html_url":"https://github.com/orzogc/acfunlive","commit_stats":null,"previous_names":[],"tags_count":31,"template":false,"template_full_name":null,"purl":"pkg:github/orzogc/acfunlive","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orzogc%2Facfunlive","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orzogc%2Facfunlive/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orzogc%2Facfunlive/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orzogc%2Facfunlive/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/orzogc","download_url":"https://codeload.github.com/orzogc/acfunlive/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orzogc%2Facfunlive/sbom","scorecard":{"id":713012,"data":{"date":"2025-08-11","repo":{"name":"github.com/orzogc/acfunlive","commit":"be1c88cd765875d1af4212d0002f996031d59c81"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.7,"checks":[{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Code-Review","score":0,"reason":"Found 0/23 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: GNU General Public License v3.0: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: containerImage not pinned by hash: Dockerfile:1","Warn: containerImage not pinned by hash: Dockerfile:14","Warn: containerImage not pinned by hash: Dockerfile:26: pin your Docker image by updating alpine to alpine@sha256:4bcff63911fcb4448bd4fdacec207030997caf25e9bea4045fa6c8c44de311d1","Info:   0 out of   3 containerImage dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Signed-Releases","score":0,"reason":"Project has not signed or included provenance with any releases.","details":["Warn: release artifact v0.7.0 not signed: https://api.github.com/repos/orzogc/acfunlive/releases/179648258","Warn: release artifact v0.6.0 not signed: https://api.github.com/repos/orzogc/acfunlive/releases/104547303","Warn: release artifact v0.5.9 not signed: https://api.github.com/repos/orzogc/acfunlive/releases/60225318","Warn: release artifact v0.5.8 not signed: https://api.github.com/repos/orzogc/acfunlive/releases/55362345","Warn: release artifact v0.5.7 not signed: https://api.github.com/repos/orzogc/acfunlive/releases/54873438","Warn: release artifact v0.7.0 does not have provenance: https://api.github.com/repos/orzogc/acfunlive/releases/179648258","Warn: release artifact v0.6.0 does not have provenance: https://api.github.com/repos/orzogc/acfunlive/releases/104547303","Warn: release artifact v0.5.9 does not have provenance: https://api.github.com/repos/orzogc/acfunlive/releases/60225318","Warn: release artifact v0.5.8 does not have provenance: https://api.github.com/repos/orzogc/acfunlive/releases/55362345","Warn: release artifact v0.5.7 does not have provenance: https://api.github.com/repos/orzogc/acfunlive/releases/54873438"],"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Vulnerabilities","score":9,"reason":"1 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GO-2025-3595 / GHSA-vvgc-356p-c3xw"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 7 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-22T08:41:44.947Z","repository_id":43044305,"created_at":"2025-08-22T08:41:44.948Z","updated_at":"2025-08-22T08:41:44.948Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30374902,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-11T06:09:32.197Z","status":"ssl_error","status_checked_at":"2026-03-11T06:09:17.086Z","response_time":84,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["acfun","live"],"created_at":"2026-03-11T07:42:36.055Z","updated_at":"2026-03-11T07:42:36.705Z","avatar_url":"https://github.com/orzogc.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# acfunlive\n\nAcFun 直播通知和下载助手\n\n- [acfunlive](#acfunlive)\n  - [依赖](#依赖)\n    - [运行依赖](#运行依赖)\n    - [编译依赖](#编译依赖)\n  - [编译](#编译)\n    - [使用 GNU Make](#使用-gnu-make)\n    - [不使用 GNU Make](#不使用-gnu-make)\n  - [配置文件详解](#配置文件详解)\n    - [live.json](#livejson)\n    - [config.json](#configjson)\n  - [使用方法](#使用方法)\n  - [web API](#web-api)\n  - [Mirai 使用方法](#mirai-使用方法)\n  - [Docker](#docker)\n\n### 依赖\n\n#### 运行依赖\n\n- ffmpeg（下载直播视频需要，不下载不需要，Windows 需要将 ffmpeg.exe 放在本程序所在文件夹内）\n- gtk3 和 libayatana-appindicator3（Linux 下运行 GUI 版本需要）\n\n#### 编译依赖\n\n- go\n- yarn\n- gtk3 和 libayatana-appindicator3（Linux 下编译 GUI 版本需要）\n- GNU Make（Linux 下可选）\n\n### 编译\n\n#### 使用 GNU Make\n\n```\n# 更新repo需另外运行 git submodule update --remote --merge\ngit clone --recursive https://github.com/orzogc/acfunlive.git\ncd acfunlive\n# 编译GUI版本运行 make build-gui ，编译Windows版本运行 make build-windows-gui 或 make build-windows-cli\nmake\n```\n\n编译好的文件在 bin 文件夹下\n\n#### 不使用 GNU Make\n\n```\n# 更新repo需另外运行 git submodule update --remote --merge\ngit clone --recursive https://github.com/orzogc/acfunlive.git\ncd acfunlive\n# Linux下编译GUI版本需加上 -tags tray 参数，Windows下编译没有控制台的GUI版本需加上 -tags tray -ldflags -H=windowsgui 参数\ngo build\n# 如果不需要webui可以不运行下面的命令\ncd acfunlive-ui\nyarn install\nyarn generate\n```\n\n在编译好的`acfunlive`或`acfunlive.exe`所在的文件夹下新建 webui 文件夹，将 acfunlive-ui 下 dist 文件夹内的所有文件复制到 webui 文件夹内\n\n### 配置文件详解\n\n可以先运行一次本程序以生成配置文件。\n\n配置文件`config.json`和`live.json`默认保存在本程序所在文件夹内，运行时可用参数`-config`指定配置文件所在文件夹。\n\n#### live.json\n\n`live.json`的内容可以手动修改，本程序会自动读取更改后的设置，无需重新启动本程序\n\n```\n[\n    {\n        \"uid\": 23682490,    // 主播的uid\n        \"name\": \"AC娘本体\", // 主播的昵称\n        \"notify\": {\n            \"notifyOn\": true,     // 主播开播通知\n            \"notifyOff\": false,   // 主播下播通知\n            \"notifyRecord\": true, // 下载主播直播相关的通知\n            \"notifyDanmu\": false  // 下载主播直播弹幕相关的通知\n            },\n        \"record\": true,     // 是否下载直播视频\n        \"danmu\": true,      // 是否下载直播弹幕\n        \"keepOnline\": true, // 是否在该主播的直播间挂机，目前主要用于挂粉丝牌等级\n        \"bitrate\": 0,       // 设置要下载的直播源的最高码率（Kbps），需自行手动修改设置\n        \"directory\": \"\",    // 直播视频和弹幕下载结束后会被移动到该文件夹，其值最好是绝对路径，会覆盖config.json里的设置，需自行手动修改设置\n        \"sendQQ\": [         // 发送开播提醒和录播相关消息到数组里的所有QQ（需要QQ机器人添加这些QQ为好友），会覆盖config.json里的设置，QQ号小于等于0会取消通知QQ\n            12345,\n            123456\n        ],\n        \"sendQQGroup\": [ // 发送开播提醒到数组里的所有QQ群（需要QQ机器人在这些QQ群里，最好是管理员，会@全体成员），会覆盖config.json里的设置，QQ群号小于等于0会取消通知QQ群\n            1234567\n        ]\n    }\n]\n```\n\n`bitrate`默认为 0，相当于默认下载码率最高的直播源，如果设置为其他数字，则会下载码率小于等于`bitrate`的条件下码率最高的直播源。直播源具体的名字和码率的对应看下表：\n| 直播源名字 | 高清 | 超清 | 蓝光 4M | 蓝光 5M | 蓝光 6M | 蓝光 7M | 蓝光 8M |\n| ---------- | --------- | --------- | ------- | ------- | ------- | ------- | ------- |\n| 码率 | 1000/2000 | 2000/3000 | 4000 | 5000 | 6000 | 7000 | 8000 |\n\n#### config.json\n\n`config.json`的内容手动修改后需要重新启动本程序以生效\n\n```\n{\n    \"source\": \"flv\",  // 直播源，有hls和flv两种，默认是flv\n    \"output\": \"mp4\",  // 下载的直播视频的格式，必须是有效的视频格式后缀名\n    \"webPort\": 51880, // web API的本地端口，使用web UI的话不能修改这个端口\n    \"directory\": \"\",  // 直播视频和弹幕下载结束后会被移动到该文件夹，其值最好是绝对路径，会被live.json里的设置覆盖\n    \"acfun\": {\n        \"cookies\": \"\", // AcFun帐号的cookies，形式为`key=value`，多个key和value使用`;`分隔；可以在AcFun网页按`F12`将网络请求里的cookies直接复制到这里，注意网页的cookies只有30天的有效期；该值不为空时会忽略下面的`account`和`password`，目前只用于直播间挂机，不需要可以为空\n        \"account\": \"\", // AcFun帐号邮箱或手机号，目前只用于直播间挂机，不需要可以为空\n        \"password\": \"\" // AcFun帐号密码\n    },\n    \"autoKeepOnline\": true, // 是否自动在有守护徽章的直播间挂机，需要设置AcFun帐号和密码\n    \"mirai\": {\n        \"adminQQ\": 12345,        // 用来发送命令控制本程序的管理者QQ，可选\n        \"botQQ\": 123456,         // QQ机器人的QQ号\n        \"botQQPassword\": \"abcde\" // QQ机器人QQ号的密码\n        \"sendQQ\": [              // 发送开播提醒和录播相关消息到数组里的所有QQ（需要QQ机器人添加这些QQ为好友），会被live.json里的设置覆盖\n            12345,\n            123456\n        ],\n        \"sendQQGroup\": [        // 发送开播提醒到数组里的所有QQ群（需要QQ机器人在这些QQ群里，最好是管理员，会@全体成员），会被live.json里的设置覆盖\n            1234567\n        ]\n    }\n}\n```\n\n### 使用方法\n\nWindows 的 GUI 版本直接运行即可，程序会出现在系统托盘那里，可以通过`http://localhost:51890`访问 web UI 界面。\n\nWindows 下如果要使用命令行模式，下载 CLI 版本，具体参数看 [cli.md](https://github.com/orzogc/acfunlive/blob/master/doc/cli.md) 。\n\n本程序下载的直播视频和弹幕默认保存在本程序所在文件夹内，运行时可用参数`-record`指定下载录播和弹幕的文件夹。\n\n命令行模式运行时可以输入命令控制本程序，运行时输入`help`查看具体命令，输入`quit`退出程序。\n\n### web API\n\n具体看 [webapi.md](https://github.com/orzogc/acfunlive/blob/master/doc/webapi.md)\n\n### Mirai 使用方法\n\n**本项目使用 [MiraiGo](https://github.com/Mrs4s/MiraiGo) 。**\n\n命令行模式启动时加上`-mirai`参数，需要在`config.json`里的`mirai`对象设置机器人 QQ 号和密码。\n\n如果由于设备锁无法登陆，请利用日志里的链接验证后重新启动本程序。\n\n`config.json`里`mirai`对象的`adminQQ`为自己的 QQ 号时，添加 QQ 机器人为好友或者将 QQ 机器人加进 QQ 群后，可以发送命令给机器人控制本程序（在 QQ 群里需要@机器人的昵称），发送`help`查看具体命令。\n\n如果实在无法登陆 QQ，修改配置文件所在文件夹里的`qqdevice.json`，将`protocol`改为 2 可以使用手机 QQ 扫码登陆。\n\n如果在一台电脑/服务器能登陆 QQ，而另外一台电脑/服务器登陆失败，可以将登陆成功的`qqdevice.json`和`qqsession.token`复制到登陆失败的电脑/服务器配置文件所在文件夹里，再启动本程序试试。\n\n### Docker\n\n```\ngit clone --recursive https://github.com/orzogc/acfunlive.git\ncd acfunlive\ndocker build -t acfunlive .\n# configDir是配置文件所在文件夹，recordDir是录播和弹幕下载所在文件夹，-webui可以换成其他参数\ndocker run -i -v configDir:/acfunlive/config -v recordDir:/acfunlive/record -p 51880:51880 -p 51890:51890 -u `id -u`:`id -g` acfunlive:latest -webui\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Forzogc%2Facfunlive","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Forzogc%2Facfunlive","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Forzogc%2Facfunlive/lists"}