从 Roblox 游戏的公开 Trello 看板采集卡片,并提取物品与兑换码结构化数据。适用于无需登录的公开看板资料整理和 JSON 数据准备。
npx skills add https://github.com/kennyzir/7deer_skills --skill roblox-game-data-scraper
这个 Skill 只提供公开 Trello 看板采集能力。使用 resources/trello_scraper.py 调用 Trello 公共 API,读取列表和卡片并提取物品与兑换码。
item、weapon、accessory 或 equipment 的列表提取物品。code 的列表提取兑换码,并根据列表名称判断 Active/Expired。解析采用启发式规则。字段没有在卡片中出现时会返回 None、空字典或 Unknown,不要把缺失值补写成事实。
Discord、Reddit、Roblox 游戏内 API、持续监控、类型文件生成和自动部署目前均未实现。它们只属于 roadmap;不要声称已采集这些来源,也不要为它们配置凭据或定时任务。
requests安装依赖:
python3 -m pip install requests
https://trello.com/b/<board-id>/... 取得 <board-id>。TrelloScraper 并调用 get_board_data(board_id)。extract_items(board_data) 和 extract_codes(board_data)。import json
from resources.trello_scraper import TrelloScraper
scraper = TrelloScraper()
board_data = scraper.get_board_data("your-public-board-id")
output = {
"items": [vars(item) for item in scraper.extract_items(board_data)],
"codes": scraper.extract_codes(board_data),
}
print(json.dumps(output, ensure_ascii=False, indent=2))
直接执行脚本会运行文件底部的示例看板,并在当前目录写入 trello_data.json。通用工作流应导入 TrelloScraper,显式提供自己的看板 ID 和输出位置。
物品记录包含:
namecategoryraritydrop_ratestatsobtain_methoddescription兑换码记录包含:
coderewardstatusnotesrequests 的 HTTP 错误终止。Discord 和 Reddit 采集只有在实现真实客户端、凭据边界、限流处理和离线测试后才能加入“已支持”范围。在此之前,相关数据必须由用户另行提供并注明来源。
Take kennyzir/roblox-game-data-scraper from the repository into ~/.claude/skills for personal
use, or into .claude/skills inside a project.
The agent identifies a skill by the name field in its header. Two skills with the
same name cannot sit side by side — one of them will be ignored.
The instructions reference pip.
Without those the skill loads but fails at the first command.