{"id":13672531,"url":"https://github.com/qwertyuiop6/get_youtube_subtitle","last_synced_at":"2025-04-27T22:32:21.617Z","repository":{"id":100551618,"uuid":"150954241","full_name":"qwertyuiop6/get_youtube_subtitle","owner":"qwertyuiop6","description":":tv: Youtube字幕下载脚本","archived":true,"fork":false,"pushed_at":"2020-04-20T12:22:11.000Z","size":21,"stargazers_count":66,"open_issues_count":3,"forks_count":17,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-11-11T10:42:33.390Z","etag":null,"topics":["python3","requests","youtube","youtube-subtitle"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/qwertyuiop6.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2018-09-30T09:47:59.000Z","updated_at":"2024-07-19T11:18:55.000Z","dependencies_parsed_at":"2024-01-14T17:18:27.948Z","dependency_job_id":"ca729be5-d9c9-45a9-9445-43106fa20e36","html_url":"https://github.com/qwertyuiop6/get_youtube_subtitle","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/qwertyuiop6%2Fget_youtube_subtitle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qwertyuiop6%2Fget_youtube_subtitle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qwertyuiop6%2Fget_youtube_subtitle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qwertyuiop6%2Fget_youtube_subtitle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/qwertyuiop6","download_url":"https://codeload.github.com/qwertyuiop6/get_youtube_subtitle/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251219601,"owners_count":21554444,"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":["python3","requests","youtube","youtube-subtitle"],"created_at":"2024-08-02T09:01:38.330Z","updated_at":"2025-04-27T22:32:21.227Z","avatar_url":"https://github.com/qwertyuiop6.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"## Python Youtube Subtitles Download Script\n\n基于[zhuwei.me](https://api.zhuwei.me)字幕接口编写下载脚本\u003cbr\u003e\n\n\u003e在config.json里修改配置下载选项:\u003cbr\u003e\n```javascript\n{\n\t\n\t\"test_token\":\"a2d09c7d76fced01f8be4b1f4cce8bec\",  \t//测试用api-key\n\t\"token\":\"\", \t\t\t\t       \t\t//个人申请的api-key\n\t\"single_language\":\"zh-Hans\",\t\t//单语言下载选项,\"en\",\"zh-Hans\",...\n\t\"multilanguage\":false,\t\t\t//是否下载双语,true 或false\n\t\"which_language_to_zh\":\"en\",\t\t//哪种语言=\u003e简中,\"en\",\"kr\",\"jp\"...\n\t\"notimeline\":false,\t\t\t//无字幕时间线 ,ture 或false\n\t\"play_list_file\":\"\"\t\t\t//从指定文件读取视频链接下载字幕\n}\n```\n* test_token : 接口测试的api,可下载单个字幕\n* token : 私人api-key, 在[api.zhuwei.me](https://api.zhuwei.me)申请\n* single_language : 单语言字幕下载\n* multilanguage : 是否下载双语字幕,若为true则single_language选项无效\n* which_language_to_zh : xxx语言+简中(机翻)字幕 (接口暂只支持xxx=\u003e简中)\n* notimeline : 字幕不要时间线\n* play_list_file : 从所填文件读取链接下载(文件可自行创建,手动添加url,一行一个链接)\n\u003cbr\u003e\n\n\u003e 环境:Python3, 依赖: requests (pip install requests)\n\n### Usage:\n1 . 命令行输入单个视频链接或playlist链接(需申请api-key)即可下载字幕:\n\n\u003e python get_sub.py\n\n2 . 从本地文件批量读取视频链接下载字幕(需申请api-key):\n\u003e1 . 手动创建文件,一行一个视频链接\u003cbr\u003e\n\u003e2 . \"play_list_file\" 填入文件**全称**(.xxx后缀不要忘记加)\u003cbr\u003e3 . 运行 python get_sub.py\n\n３.将playlist所有视频链接暂存文件再下载\n\u003e1 . 运行 python get_list.py 将自动把输入的playlis链接里的所有视频链接保存到文件\u003cbr\u003e 2 . python get_sub.py 将自动下载以上文件\n## Other:\n\n* 字幕语言支持详见[api.zhuwei.me](https://api.zhuwei.me)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqwertyuiop6%2Fget_youtube_subtitle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fqwertyuiop6%2Fget_youtube_subtitle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqwertyuiop6%2Fget_youtube_subtitle/lists"}