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 by bupt-lxc · Pull Request #4 · AofeiLi-code/rocom-data

Conversation

@bupt-lxc

@bupt-lxc bupt-lxc commented Apr 23, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

Summary

Bug Fixes (previously PR #3)

  • 列表页解析:修复解析器以匹配实际 HTML 结构
  • 技能威力解析:原本所有技能的威力解析都有误,均解析为0,修正威力字段解析逻辑,去重技能列表

New Features

  • 技能等级:parse_skills() 新增 level 字段,从 rocom_sprite_skill_level 解析 LV\d+
  • 图片爬取:爬取精灵立绘、技能图标、属性图标、特性图标、克制表图标,下载到 data/images/ 各子目录
  • urls.csv:记录所有图片 URL 及本地路径,按类型分类,边爬边更新,去重
  • skills.csv:全技能去重列表,列名对齐 skills_all.csv
  • 断点续爬:默认跳过已爬取的精灵,只爬新增内容
  • --force 参数:强制重爬所有精灵数据(图片已存在则跳过下载)

Test Plan

  • python rocom_scraper.py --limit 5 — 验证跳过逻辑
  • 全量爬取 465 只精灵,成功 415,跳过 50,失败 0
  • sprites.json 技能含 level 字段
  • urls.csv 边爬边写,五种图片类型均有记录
  • skills.csv 去重,列名正确
  • data/images/ 各子目录图片正常下载

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@bupt-lxc
bupt-lxc force-pushed the feat/skill-level-ability-images branch from be14a45 to 7d10e03 Compare April 23, 2026 06:26
Kizzen983 added 2 commits April 23, 2026 14:34
Kizzen983
fix: correct skill power parsing, deduplicate skills, update list pag…
cb87b88
…e parser
Kizzen983
feat: skill level, ability/image scraping, skills.csv, urls.csv, --fo…
c9b5258
…rce flag

- parse_skills: add level field (LV\d+ from rocom_sprite_skill_level)
- parse_sprite_detail: scrape ability icon, sprite image, matchup icons
- _add_url/_flush_urls: incremental urls.csv with per-type image download
- _save_skills_csv: deduplicated skills.csv (no 所属精灵 column)
- main: skip already-scraped sprites by default; --force clears and re-scrapes all
@bupt-lxc
bupt-lxc force-pushed the feat/skill-level-ability-images branch from 7d10e03 to c9b5258 Compare April 23, 2026 06:41
@AofeiLi-code
AofeiLi-code merged commit da860b3 into AofeiLi-code:main May 1, 2026
@bupt-lxc
bupt-lxc deleted the feat/skill-level-ability-images branch May 6, 2026 04:47
AofeiLi-code pushed a commit that referenced this pull request May 9, 2026
Aofei Li
Merge origin/main: PR #4/#5/#6 + 互动对战 / MariaDB / skill-level-ability
75bdd26
# Conflicts:
#	battle.py
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@bupt-lxc @AofeiLi-code
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — 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.