GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — feat: skill level, ability/image scraping, skills.csv, urls.csv, --fo… · AofeiLi-code/rocom-data@c9b5258

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • README.md
  • rocom_scraper.py
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎README.md‎

Copy file name to clipboardExpand all lines: README.md
+9-4Lines changed: 9 additions & 4 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,8 @@ pip install -r requirements.txt
6666
### 方式二:命令行
6767

6868
```bash
69-
python rocom_scraper.py # 全量爬取
70-
python rocom_scraper.py --check-update # 检查更新
69+
python rocom_scraper.py # 全量爬取(自动跳过已有精灵)
70+
python rocom_scraper.py --force # 强制重爬所有精灵
7171
python viewer.py # 图鉴查看器
7272
python battle.py # 战斗模拟器(含 AI 对战)
7373
python train.py # 批量训练 MCTS AI
@@ -262,14 +262,19 @@ v2.0 的目标是接入 **游戏画面实时读取**,让 AI 真正用于游戏
262262
| `--limit N` | 只爬前 N 只精灵(调试用) | 0(全部) |
263263
| `--delay N` | 每次请求间隔下限(秒),实际为 `delay ~ delay+1.5` 随机值 | 1.5 |
264264
| `--output path` | 输出 JSON 的路径 | `data/sprites.json` |
265-
| `--check-update` | 增量更新模式 | — |
265+
| `--force` | 强制重爬所有精灵,并重新下载所有图片(忽略已有缓存) | — |
266+
267+
默认情况下,爬虫会自动跳过本地 `sprites.json` 中已存在的精灵,只爬取新增内容。使用 `--force` 可强制全量重爬。
266268

267269
### 输出文件
268270

269271
| 文件 | 说明 |
270272
|------|------|
271-
| `data/sprites.json` | 完整精灵数据,嵌套 JSON |
273+
| `data/sprites.json` | 完整精灵数据,嵌套 JSON(含技能等级、特性) |
272274
| `data/sprites.csv` | 扁平化 CSV,可用 Excel / pandas 打开 |
275+
| `data/skills.csv` | 全技能去重列表(列名同 `skills_all.csv`) |
276+
| `data/urls.csv` | 爬取到的图片 URL 及本地路径,边爬边更新 |
277+
| `data/images/` | 下载的图片,按类型分子目录(sprites/skills/attributes/abilities/matchup) |
273278
| `data/sprites.backup.json` | 每次爬取前自动备份的上一版 |
274279

275280
### 爬虫数据与战斗模拟器的同步关系

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.