{"id":13430784,"url":"https://github.com/yutto-dev/bilili","last_synced_at":"2025-02-23T18:33:08.238Z","repository":{"id":37793653,"uuid":"202920480","full_name":"yutto-dev/bilili","owner":"yutto-dev","description":":beers: bilibili video (including bangumi) and danmaku downloader | B站视频（含番剧）、弹幕下载器","archived":true,"fork":false,"pushed_at":"2024-10-26T11:00:45.000Z","size":1851,"stargazers_count":1168,"open_issues_count":7,"forks_count":89,"subscribers_count":12,"default_branch":"main","last_synced_at":"2024-10-29T17:59:21.491Z","etag":null,"topics":["bilibili","crawler","danmaku","download","downloader","multithread","python3","requests","spider","subtitle","video"],"latest_commit_sha":null,"homepage":"https://bilili.nyakku.moe","language":"Python","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/yutto-dev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","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},"funding":{"patreon":"SigureMo","custom":["https://afdian.net/@siguremo","https://img.nyakku.moe/sponsor/alipay.png","https://img.nyakku.moe/sponsor/wechat.png"]}},"created_at":"2019-08-17T18:53:11.000Z","updated_at":"2024-10-29T06:49:21.000Z","dependencies_parsed_at":"2024-01-03T19:23:17.929Z","dependency_job_id":"77544c50-686d-4672-829e-b392b4be24d0","html_url":"https://github.com/yutto-dev/bilili","commit_stats":{"total_commits":337,"total_committers":7,"mean_commits":"48.142857142857146","dds":0.2522255192878339,"last_synced_commit":"4f72b629a59811c98e4a85f3d3831ba55513cf65"},"previous_names":[],"tags_count":57,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yutto-dev%2Fbilili","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yutto-dev%2Fbilili/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yutto-dev%2Fbilili/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yutto-dev%2Fbilili/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yutto-dev","download_url":"https://codeload.github.com/yutto-dev/bilili/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240002132,"owners_count":19732164,"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":["bilibili","crawler","danmaku","download","downloader","multithread","python3","requests","spider","subtitle","video"],"created_at":"2024-07-31T02:00:57.723Z","updated_at":"2025-02-23T18:33:08.201Z","avatar_url":"https://github.com/yutto-dev.png","language":"Python","readme":"# 𝓫𝓲𝓵𝓲𝓵𝓲\n\n\u003cp align=\"center\"\u003e\n   \u003cimg src=\"./docs/.vuepress/public/logo.png\" width=\"500px\"\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n   \u003ca href=\"https://bilibili.com\" target=\"_blank\"\u003e\u003cimg src=\"https://img.shields.io/badge/bilibili-1eabc9.svg?logo=bilibili\u0026logoColor=white\u0026style=flat-square\" alt=\"Bilibili\"\u003e\u003c/a\u003e\n   \u003ca href=\"https://python.org/\" target=\"_blank\"\u003e\u003cimg alt=\"PyPI - Python Version\" src=\"https://img.shields.io/pypi/pyversions/bilili?logo=python\u0026style=flat-square\"\u003e\u003c/a\u003e\n   \u003ca href=\"https://pypi.org/project/bilili/\" target=\"_blank\"\u003e\u003cimg src=\"https://img.shields.io/pypi/v/bilili?style=flat-square\" alt=\"pypi\"\u003e\u003c/a\u003e\n   \u003ca href=\"https://pypi.org/project/bilili/\" target=\"_blank\"\u003e\u003cimg alt=\"PyPI - Downloads\" src=\"https://img.shields.io/pypi/dm/bilili?style=flat-square\"\u003e\u003c/a\u003e\n   \u003ca href=\"https://actions-badge.atrox.dev/yutto-dev/bilili/goto?ref=main\"\u003e\u003cimg alt=\"Build Status\" src=\"https://img.shields.io/endpoint.svg?url=https%3A%2F%2Factions-badge.atrox.dev%2Fyutto-dev%2Fbilili%2Fbadge%3Fref%3Dmain\u0026label=API%20Test\u0026style=flat-square\" /\u003e\u003c/a\u003e\n   \u003ca href=\"LICENSE\"\u003e\u003cimg alt=\"LICENSE\" src=\"https://img.shields.io/github/license/yutto-dev/bilili?style=flat-square\"\u003e\u003c/a\u003e\n   \u003ca href=\"https://gitmoji.dev\"\u003e\u003cimg src=\"https://img.shields.io/badge/gitmoji-%20😜%20😍-FFDD67?style=flat-square\" alt=\"Gitmoji\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\u003cstrong\u003e🍻 𝓫𝓲𝓵𝓲𝓵𝓲，一个可以帮你快速下载 \u003ca href=\"https://www.bilibili.com\"\u003eB 站\u003c/a\u003e投稿视频以及番剧视频的 CLI～～～\u003c/strong\u003e\u003c/p\u003e\n\n**文档戳这里啦 → [bilili の可愛い自己紹介](https://bilili.nyakku.moe)**\n\n\u003e [!WARNING]\n\u003e\n\u003e 由于 B 站近期 API 的变动较大，导致 bilili 部分功能无法正常使用，相关问题已在 v2 版本（[yutto](https://github.com/yutto-dev/yutto)）中修复，限于个人精力，无法同时维护两个版本，所以建议大家尽快迁移至 v2 版本，感谢大家一直以来对 bilili 的支持～\n\n## 特性\n\n-  支持投稿视频（也即原 AV 号视频）和番剧下载\n-  多线程 + 分块下载，总之就是很快啦\n-  断点续传，即便一次没下完也可以接着下载\n-  弹幕支持，自动下载弹幕并可转换为 ASS 弹幕\n\n## 快速开始\n\n`bilili` 可以从以下两种视频主页获取视频\n\n-  投稿视频主页：\n   -  `https://www.bilibili.com/video/avxxxxxx`\n   -  `https://b23.tv/avxxxxxx`\n   -  `https://www.bilibili.com/video/BVxxxxxx`\n   -  `https://b23.tv/BVxxxxxx`\n-  番剧视频主页：\n   -  `https://www.bilibili.com/bangumi/media/mdxxxxxx`\n   -  `https://www.bilibili.com/bangumi/play/ssxxxxxx`\n   -  `https://b23.tv/ssxxxxxx`\n   -  `https://www.bilibili.com/bangumi/play/epxxxxxx`\n   -  `https://b23.tv/epxxxxxx`\n\n### 安装 FFmpeg\n\n由于大多数格式需要合并，所以 bilili 依赖于 FFmpeg，你需要事先安装好它\n\nWindows 请[手动下载](https://ffmpeg.org/download.html)并解压后，存放到任意文件夹下，之后将 `ffmpeg.exe` 所在文件夹**添加到环境变量**\n\n而如果是 macOS 或者 Linux 发行版，这一步可以很方便地通过包管理器一键完成啦～\n\n最后你可以通过直接在终端运行 `ffmpeg -version` 测试是否安装成功\n\n### 安装 bilili\n\n#### pip 安装\n\n现在 bilili 支持通过 pip 一键安装\n\n```bash\npip install bilili\n```\n\n#### 源码安装\n\n此外你还可以从 GitHub 上下载最新的源码进行安装\n\n```bash\ngit clone git@github.com:yutto-dev/bilili.git\ncd bilili/\npip install .\n```\n\n### 运行\n\n你只需要这样就可以运行 bilili 啦～\n\n```bash\nbilili \u003curl\u003e\n```\n\n当然，你需要将 `\u003curl\u003e` 替换为前面的视频主页 url\n\n## 参数\n\nbilili 还支持很多参数，但参数使用方法等内容此处不作赘述，详情请访问[文档](https://bilili.nyakku.moe/cli/)\n\n-  `-t`/`--type` 选择下载类型（`flv` or `dash` or `mp4`），默认为 dash 类型，注意该参数仅代表下载源格式，所有格式最后均会转为 mp4\n-  `-d`/`--dir` 指定存储目录，默认为项目根目录\n-  `-q`/`--quality` 指定清晰度，默认为 `127`（8K 超高清）\n-  `-n`/`--num-threads` 指定最大下载线程数，默认为 16\n-  `-p`/`--episodes` 选集，默认为 `^~$`（全选）\n-  `-s`/`--with-section` 同时下载附加剧集（ PV、预告以及特别篇等专区内容）\n-  `-w`/`--overwrite` 强制覆盖已下载视频\n-  `-c`/`--sess-data` 传入 `cookies` 中的 `SESSDATA`\n-  `-y`/`--yes` 跳过下载询问\n-  `--audio-quality` 指定音频质量等级，默认为 `30280`（320kbps）\n-  `--playlist-type` 指定播放列表类型，支持 `dpl` 和 `m3u` ，默认为 `dpl`，设置为 `no` 即不生成播放列表\n-  `--danmaku` 指定弹幕类型，支持 `xml` 和 `ass`，如果设置为 `no` 则不下载弹幕，默认为 `xml` 弹幕\n-  `--block-size` 分块下载器的块大小，单位为 MB，默认为 128MB，设置为 0 时禁用分块下载\n-  `--abs-path` 修改播放列表路径类型为绝对路径\n-  `--use-mirrors` 启用从多个镜像下载功能\n-  `--disable-proxy` 禁用系统代理\n-  `--no-color` 不使用任何颜色\n-  `--debug` 开启 `debug` 模式\n\n## 参与贡献\n\n请阅读 [CONTRIBUTING.md](CONTRIBUTING.md)\n","funding_links":["https://patreon.com/SigureMo","https://afdian.net/@siguremo","https://img.nyakku.moe/sponsor/alipay.png","https://img.nyakku.moe/sponsor/wechat.png"],"categories":["Python","下载工具"],"sub_categories":["直播脚本"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyutto-dev%2Fbilili","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyutto-dev%2Fbilili","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyutto-dev%2Fbilili/lists"}