{"id":16674289,"url":"https://github.com/tommy131/kuaishouparser","last_synced_at":"2025-03-21T18:31:22.641Z","repository":{"id":44352379,"uuid":"468950074","full_name":"Tommy131/KuaishouParser","owner":"Tommy131","description":"全网功能最全的快手短视频解析工具","archived":false,"fork":false,"pushed_at":"2023-06-19T21:35:56.000Z","size":2978,"stargazers_count":108,"open_issues_count":0,"forks_count":17,"subscribers_count":3,"default_branch":"newapi","last_synced_at":"2025-03-18T03:22:36.010Z","etag":null,"topics":["cli-tools","kuaishou","kuaishou-api","kuaishouvideodownloader","kwai","php"],"latest_commit_sha":null,"homepage":"","language":"PHP","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/Tommy131.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":"2022-03-12T01:38:07.000Z","updated_at":"2025-01-05T07:52:01.000Z","dependencies_parsed_at":"2024-10-28T11:28:14.703Z","dependency_job_id":"75c0833f-9256-4023-a84e-86cb24c49c9d","html_url":"https://github.com/Tommy131/KuaishouParser","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tommy131%2FKuaishouParser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tommy131%2FKuaishouParser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tommy131%2FKuaishouParser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tommy131%2FKuaishouParser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Tommy131","download_url":"https://codeload.github.com/Tommy131/KuaishouParser/tar.gz/refs/heads/newapi","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244848518,"owners_count":20520535,"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":["cli-tools","kuaishou","kuaishou-api","kuaishouvideodownloader","kwai","php"],"created_at":"2024-10-12T12:30:07.774Z","updated_at":"2025-03-21T18:31:22.126Z","avatar_url":"https://github.com/Tommy131.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# KuaishouParser\n\n开源许可证: ![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg) [Learn More](https://opensource.org/licenses/Apache-2.0)\n\n快手短视频批量下载脚本\n\n此项目采用 `OwOFrame` 进行的后端构建, 需要配套使用. 项目地址: [点我](https://github.com/Tommy131/OwOFrame)\n\n本项目仅用于学习交流等途径, 严禁贩卖此源码!\n\n请务必采用默认提供的Issue模板提交BUG或建议!\n\n项目打赏/捐赠地址: \u003chttps://owoblog.com/donation/\u003e\n\n[English version click here!](README_EN.md)\n\n## 实现目标\n\n- [x] 支持模拟扫码登录主动获取 `Cookies` (详见下方的使用方法)\n- [x] 支持解析单个作者的全部作品\n- [x] 支持解析 `手机客户端` 分享的视频链接\n- [x] 支持解析 `PC网页端` 分享的视频链接\n- [x] 支持下载尽管作品被作者设为不允许下载的作品\n- [x] 支持解析单个作品的信息\n- [x] 后台日志记录最近的解析记录\n- [x] 后台日志记录解析作品的详情 (标题, 发布时间, 赞数等)\n- [x] 错误列表 (即请求超时等作品进入错误列表, 等待下次重试)\n- [ ] 敬请期待......给个Star鼓励我开发吧!!! 拜托了!!! 这个项目真的花了我好多时间抓接口和优化!!!\n\n## 怎么使用?\n\n请根据以下步骤慢慢操作.\n\n### 0. 安装说明\n\n- 先克隆项目[OwOFrame](https://github.com/Tommy131/OwOFrame)到一个文件目录下.\n- 安装好框架 `OwOFrame` 之后, 将此项目克隆到 `storage/module` 目录内.\n\n\u003e 注意: 你也可以直接使用指令 `git clone https://github.com/Tommy131/KuaishouParser.git` 到 `storage/module` 目录下.\n\n### 1. Cookies的获取方法\n\n- 打开快手官网 `www.kuaishou.com` 与 `live.kuaishou.com` 并登录你的账号.\n- 搜索你想保存的作者名称, 点击加载完成页面后打开浏览器控制台 (F12).\n- 分别在第一点中提到的两个站点中打开控制台并其中输入 `document.cookie` 之后, 复制其长串Cookies, 并将其粘贴到 `config.json` 中.\n\n\u003e 提示: 当然你也可以使用下方的模拟登录指令获取Cookies.\n\n### 2. 配置文件解释\n\n- config.json 中的 `www` 对应 `www.kuaishou.com`, `live` 对应 `live.kuaishou.com`.\n- 默认的配置文件如下:\n\n``` json\n{\n    \"cookies\": {\n        \"live\": \"(cookie: string)\", // 这里填入 live.kuaishou.com 的 Cookies\n        \"www\": \"(cookie: string)\"   // 这里填入 www.kuaishou.com 的 Cookies\n    },\n    \"proxy\": {\n        \"status\": false,           // 是否使用代理服务器选项\n        \"address\": \"127.0.0.1\",    // 代理服务器的地址\n        \"port\": 10809              // 代理服务器的端口\n    }\n}\n```\n\n### 3. 指令部分\n\n本项目的中心指令为 `owo kuai [arguments: string]`, 缺省 `php` 的前提是命令终端在当前项目的根目录中运行.  \n全局参数 (参数位置任意):\n\n- 自动下载: `--autoDownload` 或 `--ad`\n- 无缓存请求: `--no-cache`\n- 站点选择: `--live` (默认) 或 `--www`\n\n#### 3.1. 作者作品全解析\n\n指令为:  `owo kuai [authorId: string]`  \n\n- `authorId`: 作者ID (此处的ID可以为快手App中显示的快手号, 也可以为 \u003chttps://(快手的域名)/profile/authorId\u003e 中的 authorId)\n\n#### 3.2. 模糊用户搜索\n\n指令为:  `owo kuai -search [userName: string]`  \n\n- `authorId`: 用户名称\n\n#### 3.3. 分享解析\n\n指令为: `owo kuai -sid [id: string] (--mode-mobile)`\n\n- 此处的 `id` 为 \u003chttps://v.kuaishou.com/xxxxxx\u003e 中的 xxxxxx\n- PC端为 \u003chttps://www.kuaishou.com/f/xxxxxx\u003e 中的 xxxxxx\n- `-sid`: 分享ID, 也可以写作 \"-shareId\"\n- `--mode-pc`: 从Web网页端中解析\n- `--mode-mobile`: 从手机客户端中解析 (默认解析站点为手机客户端)\n\n#### 3.3. 缓存删除\n\n指令为: `owo kuai -d [fileName: string] [...string]`\n\n- 此处的 `fileName` 为 `downloaded` 目录下的任意文件/文件夹名称\n\n#### 3.5. 模拟登录 (扫码登录)\n\n指令为: `owo kuai login (platform: string)`\n\n- 此处的 `platform` 为登录的站点/站点 (默认 `live`, 另外的选项为 `www`)\n- 根据提示进行操作! 如下图:\n![登录操作](.repo/img/tested_web_login.png)\n\n#### 3.6. 打开文件目录 (仅 Windows)\n\n指令为: `owo kuai -o (name: string)`\n\n- 默认输入指令且不带参数时, 将打开资源下载存储路径, 否则寻找参数 `name` 相关的文件/文件夹名称\n\n## 特性\n\n- [x] 支持模拟扫码登录主动获取Cookies\n- [x] 支持分享解析视频下载\n- [x] 支持保存客户端中无法下载的视频/照片\n- [x] 下载的照片目前皆无水印\n- [x] 下载的视频目前为原始上传视频 (也就是说没有后面的 \"快手, 记录美好生活\")\n- [x] 日志记录\n- [x] 跨站点兼容\n- [x] 支持使用代理服务\n\n## 截图展示 (后端指令实现)\n\nCLI数据抓取  \n![CLI数据抓取](.repo/img/cli-command.png)\n\n## Statement\n\n\u0026copy; 2016-2022 [`OwOBlog-DGMT`](https://www.owoblog.com). Please comply with the open source license of this project for modification, derivative or commercial use of this project.\n\n\u003e My Contacts:\n\n- Website: [`HanskiJay`](https://www.owoblog.com)\n- Telegram: [`HanskiJay`](https://t.me/HanskiJay)\n- E-Mail: [`HanskiJay`](mailto:support@owoblog.com)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftommy131%2Fkuaishouparser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftommy131%2Fkuaishouparser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftommy131%2Fkuaishouparser/lists"}