语言 Languages: English | 繁體中文 | 简体中文 | 日本語
一款高性能的 DLsite 作品分类与管理工具,提供 FastAPI 后端与 Nuxt 3 Web UI。
- 异步爬虫与文件处理
- 交互式 CLI 流程:分类、更新、校验、归档
- FastAPI REST API:搜索、筛选、分页与完整元数据
- Nuxt 3 UI:浏览、评分、收藏
- 公司 ARCHIVE 工具:抓取公司全量作品元数据
- 以
.tag文件存储,无需数据库
- Python 3.10+
- Node.js 18+
- uv
- Yarn(或 npm/pnpm)
uv venv
source .venv/bin/activate
uv sync
cd dlsite_classification_web
yarn install
uv run python main.py
uv run python server.py
自定义数据路径 / 主机 / 端口:
uv run python server.py --data-path /path/to/your/dlsite/data --host 0.0.0.0 --port 8001
也可通过环境变量指定数据路径:
export DLSITE_DATA_PATH=/path/to/your/dlsite/data
cd dlsite_classification_web
yarn dev
访问 http://localhost:3000(若 3000 被占用则为 http://localhost:3001)。
前端默认连接 http://localhost:8001 API。
--data-pathDLSITE_DATA_PATH- 默认路径(依次检查)
./test_game_info/mnt/d/R18/DLsite./data
GET //GET /statusGET /works(搜索、筛选、排序、分页)GET /work/{code}GET /companies/GET /companies/listGET /company/{company_id}/works-statusPOST /company/{company_id}/archiveGET /company/{company_id}/archive-infoGET /genres/GET /work-formats/GET /file-formatsGET /collectionsPOST /work/{code}/user-dataGET /image?path=<url-encoded-path>GET /scan
Swagger UI:http://localhost:8001/docs
[社团名称]_[社团ID]/
├── [作品ID]_[社团名称]_[社团ID] 作品标题/
│ └── [作品ID]_info/
│ ├── [作品ID]_img_main.jpg
│ ├── [作品ID]_img_smp1.jpg
│ ├── code.tag
│ ├── title.tag
│ ├── company.tag
│ └── ... 其他标签文件
└── ARCHIVE/
└── RJ123456_info/
├── title.tag
└── ... 归档信息
uv run ruff check --fix .
uv run ruff format .
uv run mypy .
./run_tests.sh
若在 WSL 出现 "bad interpreter":
sed -i 's/\r$//' run_tests.sh && chmod +x run_tests.sh



