{"id":13431463,"url":"https://github.com/Neutralization/BiliBiliRankingScripts","last_synced_at":"2025-03-16T11:31:42.300Z","repository":{"id":38123091,"uuid":"340853885","full_name":"Neutralization/BiliBiliRankingScripts","owner":"Neutralization","description":"周刊哔哩哔哩排行榜视频制作自动化脚本","archived":false,"fork":false,"pushed_at":"2025-01-31T11:54:12.000Z","size":409,"stargazers_count":68,"open_issues_count":0,"forks_count":7,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-31T12:30:17.868Z","etag":null,"topics":["after-effects","bilibili","javascript","powershell","python","ranking"],"latest_commit_sha":null,"homepage":"https://space.bilibili.com/398300398","language":"JavaScript","has_issues":false,"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/Neutralization.png","metadata":{"files":{"readme":"README.md","changelog":"history100.jsx","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},"funding":{"ko_fi":"neutralized"}},"created_at":"2021-02-21T08:33:53.000Z","updated_at":"2025-01-31T11:54:15.000Z","dependencies_parsed_at":"2023-02-13T05:31:00.362Z","dependency_job_id":"be082008-3067-421a-b98e-a5691461aada","html_url":"https://github.com/Neutralization/BiliBiliRankingScripts","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Neutralization%2FBiliBiliRankingScripts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Neutralization%2FBiliBiliRankingScripts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Neutralization%2FBiliBiliRankingScripts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Neutralization%2FBiliBiliRankingScripts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Neutralization","download_url":"https://codeload.github.com/Neutralization/BiliBiliRankingScripts/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243863100,"owners_count":20360265,"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","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":["after-effects","bilibili","javascript","powershell","python","ranking"],"created_at":"2024-07-31T02:01:03.265Z","updated_at":"2025-03-16T11:31:42.292Z","avatar_url":"https://github.com/Neutralization.png","language":"JavaScript","funding_links":["https://ko-fi.com/neutralized"],"categories":["开发"],"sub_categories":["直播脚本"],"readme":"# BiliBiliRankingScripts\n\n涉及周刊哔哩哔哩排行榜制作相关的脚本\n\n## 工作环境 (Windows 10/11)\n\n- [Adobe After Effects](https://www.adobe.com/products/aftereffects.html)\n    \u003e 支持版本 CS6/CC/CC2014/CC2015/CC2015.3/CC2017/CC2018/2019/2020/2021/2022/2023/2024/2025  \n    需要在 AE 首选项中打开`允许脚本写入文件和访问网络`\n- [Adobe Media Encoder](https://www.adobe.com/products/media-encoder.html) / [Voukoder](https://www.voukoder.org/forum/thread/783-downloads-instructions/)\n- [aria2c](https://aria2.github.io/) / [FFmpeg](https://ffmpeg.org/) / [ChromeDriver](https://developer.chrome.com/docs/chromedriver/downloads?hl=zh-cn)\n    \u003e [winget](https://github.com/microsoft/winget-cli) install aria2.aria2 Gyan.FFmpeg.Shared Chromium.ChromeDriver  \n    \u003e 其他方式需添加 `aria2c` `ffmpeg` `chromedriver` 路径到系统 `$PATH` 变量\n- [PowerShell](https://docs.microsoft.com/zh-cn/powershell/)\n    \u003e 安装 [powershell-yaml](https://www.powershellgallery.com/packages/powershell-yaml) 模块  \n    \u003e Install-Module -Name powershell-yaml\n- [Python](https://www.python.org/)\n    \u003e 安装 [arrow](https://pypi.org/project/arrow/) / [Pillow](https://pypi.org/project/Pillow/) / [PyYAML](https://pypi.org/project/PyYAML/) / [requests](https://pypi.org/project/requests/) / [selenium](https://pypi.org/project/selenium/) 模块  \n    \u003e python -m pip install -r requirements.txt\n- [json2.js](https://github.com/douglascrockford/JSON-js)\n\n## 获取 Cookie\n\n注意使用 `Netscape HTTP Cookie File` 格式保存为 `cookies.txt`\n\n- Chrome 安装 [Get cookies.txt LOCALLY](https://chromewebstore.google.com/detail/get-cookiestxt-locally/cclelndahbckbenkjhflpdbgdldlbecc)\n- Edge 安装 [Export Cookies File](https://microsoftedge.microsoft.com/addons/detail/export-cookies-file/hbglikhfdcfhdfikmocdflffaecbnedo)\n- Firefox 安装 [Export Cookies](https://addons.mozilla.org/en-US/firefox/addon/export-cookies-txt/)\n\n## 流程简述\n\n1. 由神秘的 bilibiliran 提供周刊所需数据的 json 格式文件\n2. 手动制作 STAFF 列表，开头结尾的 Free Talk，ED 的 BGM 信息，Pickup 栏目等\n3. 执行 `movefile.ps1` 快速移动文件至工作目录（可选）\n4. 执行 `original_title.py` 更新 json 中的视频标题\n5. 执行 `generate.py` 生成周榜中使用到的所有图片素材\n6. 执行 `pickup.py` 生成 Pickup 视频的图片素材\n7. 执行 `download.ps1` 下载周榜中使用到的所有视频素材\n8. 选取周榜中所展示的视频片段，在 yaml 文件中记录素材片段起始时间\n9. 执行 `normalize.ps1` 裁剪视频，同时标准化音频音量\n10. 启动 After Effects, 执行脚本 `autobilibilirank.jsx` 自动导入素材生成周刊工程文件\n11. 执行 `timestamp.py` 提交播放器分段章节\n12. 执行 `favorite.ps1` 添加视频到收藏夹\n\n## Todo\n\n- [x] 自动生成 1080P 视频的图片素材\n- [x] 正确渲染稿件标题中的 Unicode 字符\n- [ ] 取代 Pillow 改用前端作图\n\n## 学习资料\n\n- [After Effects Scripting Guide](https://ae-scripting.docsforadobe.dev/)\n- [After Effects Expression Reference](https://ae-expressions.docsforadobe.dev/)\n- [After Effects Plugin Match Names List](https://fendrafx.com/utility/after-effects-plugin-match-names-list/)\n- [PowerShell | Microsoft Docs](https://docs.microsoft.com/en-us/powershell/scripting/overview)\n- [Python 3.10 documentation](https://docs.python.org/3.10/)\n- [Chromium WebdriverIO documentation](https://webdriver.io/docs/api/chromium/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FNeutralization%2FBiliBiliRankingScripts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FNeutralization%2FBiliBiliRankingScripts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FNeutralization%2FBiliBiliRankingScripts/lists"}