---
title: "ankiweb-cli：重建 AnkiWeb 的 protobuf 卡片接口"
url: https://awesomerea.org/zh/resources/ankiweb-cli-case/
updated: 2026-11-08
type: resource
---

# ankiweb-cli：重建 AnkiWeb 的 protobuf 卡片接口

> ankiweb-cli 重建 AnkiWeb 内部 protobuf 服务请求，用于牌组和卡片操作。Python CLI 分别取得 ankiweb.net 与 ankiuser.net 的会话 Cookie，以小型编解码器处理长度分隔消息，并通过相关端点创建牌组、编辑卡片和搜索内容。

- 类型：案例
- 目标：协议 · 网站
- 类别：独立重建案例
- 关联：独立重建项目
- 来源复核于：2026-11-08
- 收录于：2026-11-08
- 原始资源：<https://github.com/htlin222/ankiweb-add-card>
- 一手来源：<https://github.com/htlin222/ankiweb-add-card/blob/49b68949ca055f69edf71cc67b32cc4f86cc9ef0/CLAUDE.md>
- 目录页面：<https://awesomerea.org/zh/resources/ankiweb-cli-case/>
- 记录 JSON：<https://awesomerea.org/resources/ankiweb-cli-case/record.json>
- 英文版：[English](https://awesomerea.org/resources/ankiweb-cli-case/index.md)

## 使用条件与局限

- **前提条件：**需要 Python 3.10 或更高版本，以及用户自有的 AnkiWeb 登录凭据。
- **局限：**所用端点为私有接口，可能发生变化。
- **许可：**采用 MIT 许可证。

## 一手来源

1. <https://github.com/htlin222/ankiweb-add-card/blob/49b68949ca055f69edf71cc67b32cc4f86cc9ef0/CLAUDE.md>
2. <https://github.com/htlin222/ankiweb-add-card/blob/49b68949ca055f69edf71cc67b32cc4f86cc9ef0/README.md>

## 同分区更多条目：网站

- [aqi-liberator：解码 aqicn.org 历史空气质量数据](https://awesomerea.org/zh/resources/aqi-liberator-case/index.md) · 案例
- [Webtoon API：重建 Android 客户端请求签名](https://awesomerea.org/zh/resources/webtoon-api-case/index.md) · 案例
- [WeHeartIt API Endpoints：从 Android 应用恢复接口路径](https://awesomerea.org/zh/resources/weheartit-api-endpoints-case/index.md) · 案例
- [FacebookUnsentMessage：重现 Messenger 历史消息同步](https://awesomerea.org/zh/resources/facebook-unsent-message-case/index.md) · 案例
- [Dih Pinterest：重建 Pinterest 搜索站点的页面与数据流](https://awesomerea.org/zh/resources/dih-pinterest-case/index.md) · 案例
- [urja-api：重建 Urja Meter Ops 门户 API](https://awesomerea.org/zh/resources/urja-api-meter-ops-case/index.md) · 案例

## 关于此条目

说明已依据一手来源复核。
原创说明采用 MIT 许可；外部项目、论文与素材保留各自的权利和许可。
