{
  "schemaVersion": "1.0",
  "item": {
    "slug": "bilibili-analytics",
    "name": "Bilibili Analytics",
    "source": "tencent",
    "type": "skill",
    "category": "数据分析",
    "sourceUrl": "https://clawhub.ai/pcjinglang/bilibili-analytics",
    "canonicalUrl": "https://clawhub.ai/pcjinglang/bilibili-analytics",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadMode": "redirect",
    "downloadUrl": "/downloads/bilibili-analytics",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=bilibili-analytics",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "installMethod": "Manual import",
    "extraction": "Extract archive",
    "prerequisites": [
      "OpenClaw"
    ],
    "packageFormat": "ZIP package",
    "includedAssets": [
      "INSTALL.md",
      "SKILL.md",
      "clawhub.json",
      "package.json",
      "references/usage-examples.md",
      "scripts/analyze_data.py"
    ],
    "primaryDoc": "SKILL.md",
    "quickSetup": [
      "Download the package from Yavira.",
      "Extract the archive and review SKILL.md first.",
      "Import or place the package into your OpenClaw setup."
    ],
    "agentAssist": {
      "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
      "steps": [
        "Download the package from Yavira.",
        "Extract it into a folder your agent can access.",
        "Paste one of the prompts below and point your agent at the extracted folder."
      ],
      "prompts": [
        {
          "label": "New install",
          "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete."
        },
        {
          "label": "Upgrade existing",
          "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run."
        }
      ]
    },
    "sourceHealth": {
      "source": "tencent",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-04-23T16:43:11.935Z",
      "expiresAt": "2026-04-30T16:43:11.935Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=4claw-imageboard",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=4claw-imageboard",
        "contentDisposition": "attachment; filename=\"4claw-imageboard-1.0.1.zip\"",
        "redirectLocation": null,
        "bodySnippet": null
      },
      "scope": "source",
      "summary": "Source download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this source.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/bilibili-analytics"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    },
    "downloadPageUrl": "https://openagent3.xyz/downloads/bilibili-analytics",
    "agentPageUrl": "https://openagent3.xyz/skills/bilibili-analytics/agent",
    "manifestUrl": "https://openagent3.xyz/skills/bilibili-analytics/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/bilibili-analytics/agent.md"
  },
  "agentAssist": {
    "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
    "steps": [
      "Download the package from Yavira.",
      "Extract it into a folder your agent can access.",
      "Paste one of the prompts below and point your agent at the extracted folder."
    ],
    "prompts": [
      {
        "label": "New install",
        "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete."
      },
      {
        "label": "Upgrade existing",
        "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run."
      }
    ]
  },
  "documentation": {
    "source": "clawhub",
    "primaryDoc": "SKILL.md",
    "sections": [
      {
        "title": "Bilibili Analytics",
        "body": "搜索和分析B站视频数据，生成统计报告。"
      },
      {
        "title": "快速开始",
        "body": "# 搜索关键词并抓取数据\nagent-browser open \"https://search.bilibili.com/all?keyword=你的关键词\"\n\n# 获取数据\nagent-browser eval '抓取脚本'\n\n# 生成报告\n# 分析数据并输出统计"
      },
      {
        "title": "1. 搜索视频",
        "body": "agent-browser open \"https://search.bilibili.com/all?keyword={关键词}\" --timeout 15000"
      },
      {
        "title": "2. 抓取数据",
        "body": "使用 scripts/scrape_videos.sh 或手动执行：\n\nagent-browser eval '\nconst videos = [];\ndocument.querySelectorAll(\".bili-video-card\").forEach((card) => {\n  const title = card.querySelector(\".bili-video-card__info--tit\")?.textContent.trim() || \"\";\n  const author = card.querySelector(\".bili-video-card__info--author\")?.textContent.trim() || \"\";\n  const date = card.querySelector(\".bili-video-card__info--date\")?.textContent.trim() || \"\";\n  const stats = card.querySelectorAll(\".bili-video-card__stats--item\");\n  const playCount = stats[0]?.textContent.trim() || \"0\";\n  const commentCount = stats[1]?.textContent.trim() || \"0\";\n  videos.push({title, author, date, playCount, commentCount});\n});\nJSON.stringify(videos, null, 2);\n'"
      },
      {
        "title": "3. 多页面抓取",
        "body": "# 翻页抓取\nfor page in 1 2 3 4 5; do\n  agent-browser open \"https://search.bilibili.com/all?keyword={关键词}&page=$page\"\n  agent-browser eval '抓取脚本' >> data.json\ndone"
      },
      {
        "title": "4. 数据分析",
        "body": "使用 scripts/analyze_data.py 或手动分析：\n\n时间分布统计\n作者活跃度排名\n评论数分布\n播放量分布\n关键发现和建议"
      },
      {
        "title": "scripts/scrape_videos.sh",
        "body": "一键抓取脚本，支持指定关键词和页数。\n\n./scripts/scrape_videos.sh \"关键词\" 页数"
      },
      {
        "title": "scripts/analyze_data.py",
        "body": "数据分析脚本，生成统计报告。\n\npython scripts/analyze_data.py data.json"
      },
      {
        "title": "统计报告模板",
        "body": "## 📊 Bilibili \"{关键词}\" 搜索结果统计报告\n\n### 📈 总体数据\n- 数据范围: 前N页搜索结果\n- 视频总数: X个\n- 采集时间: YYYY-MM-DD HH:MM\n\n### 🕐 发帖时间分布\n| 时间段 | 数量 | 占比 |\n|--------|------|------|\n\n### 👥 活跃作者 TOP 10\n| 排名 | 作者 | 视频数 |\n|------|------|--------|\n\n### 💬 评论数分布\n| 评论数范围 | 视频数 | 占比 |\n|------------|--------|------|\n\n### 👁️ 播放量分布\n| 播放量范围 | 视频数 | 占比 |\n|------------|--------|------|\n\n### 🎯 关键发现\n1. ...\n2. ...\n\n### 📝 建议\n- ..."
      },
      {
        "title": "注意事项",
        "body": "反爬虫: B站有反爬虫机制，建议控制抓取频率\n数据准确性: 数据实时变化，报告仅代表抓取时刻状态\n隐私合规: 仅抓取公开数据，不涉及用户隐私"
      },
      {
        "title": "错误处理",
        "body": "浏览器启动失败：检查 agent-browser 安装\n数据抓取失败：检查页面是否加载完成\n分析脚本错误：检查数据格式是否正确"
      }
    ],
    "body": "Bilibili Analytics\n\n搜索和分析B站视频数据，生成统计报告。\n\n快速开始\n# 搜索关键词并抓取数据\nagent-browser open \"https://search.bilibili.com/all?keyword=你的关键词\"\n\n# 获取数据\nagent-browser eval '抓取脚本'\n\n# 生成报告\n# 分析数据并输出统计\n\n完整工作流程\n1. 搜索视频\nagent-browser open \"https://search.bilibili.com/all?keyword={关键词}\" --timeout 15000\n\n2. 抓取数据\n\n使用 scripts/scrape_videos.sh 或手动执行：\n\nagent-browser eval '\nconst videos = [];\ndocument.querySelectorAll(\".bili-video-card\").forEach((card) => {\n  const title = card.querySelector(\".bili-video-card__info--tit\")?.textContent.trim() || \"\";\n  const author = card.querySelector(\".bili-video-card__info--author\")?.textContent.trim() || \"\";\n  const date = card.querySelector(\".bili-video-card__info--date\")?.textContent.trim() || \"\";\n  const stats = card.querySelectorAll(\".bili-video-card__stats--item\");\n  const playCount = stats[0]?.textContent.trim() || \"0\";\n  const commentCount = stats[1]?.textContent.trim() || \"0\";\n  videos.push({title, author, date, playCount, commentCount});\n});\nJSON.stringify(videos, null, 2);\n'\n\n3. 多页面抓取\n# 翻页抓取\nfor page in 1 2 3 4 5; do\n  agent-browser open \"https://search.bilibili.com/all?keyword={关键词}&page=$page\"\n  agent-browser eval '抓取脚本' >> data.json\ndone\n\n4. 数据分析\n\n使用 scripts/analyze_data.py 或手动分析：\n\n时间分布统计\n作者活跃度排名\n评论数分布\n播放量分布\n关键发现和建议\n脚本说明\nscripts/scrape_videos.sh\n\n一键抓取脚本，支持指定关键词和页数。\n\n./scripts/scrape_videos.sh \"关键词\" 页数\n\nscripts/analyze_data.py\n\n数据分析脚本，生成统计报告。\n\npython scripts/analyze_data.py data.json\n\n输出格式\n统计报告模板\n## 📊 Bilibili \"{关键词}\" 搜索结果统计报告\n\n### 📈 总体数据\n- 数据范围: 前N页搜索结果\n- 视频总数: X个\n- 采集时间: YYYY-MM-DD HH:MM\n\n### 🕐 发帖时间分布\n| 时间段 | 数量 | 占比 |\n|--------|------|------|\n\n### 👥 活跃作者 TOP 10\n| 排名 | 作者 | 视频数 |\n|------|------|--------|\n\n### 💬 评论数分布\n| 评论数范围 | 视频数 | 占比 |\n|------------|--------|------|\n\n### 👁️ 播放量分布\n| 播放量范围 | 视频数 | 占比 |\n|------------|--------|------|\n\n### 🎯 关键发现\n1. ...\n2. ...\n\n### 📝 建议\n- ...\n\n注意事项\n反爬虫: B站有反爬虫机制，建议控制抓取频率\n数据准确性: 数据实时变化，报告仅代表抓取时刻状态\n隐私合规: 仅抓取公开数据，不涉及用户隐私\n错误处理\n浏览器启动失败：检查 agent-browser 安装\n数据抓取失败：检查页面是否加载完成\n分析脚本错误：检查数据格式是否正确"
  },
  "trust": {
    "sourceLabel": "tencent",
    "provenanceUrl": "https://clawhub.ai/pcjinglang/bilibili-analytics",
    "publisherUrl": "https://clawhub.ai/pcjinglang/bilibili-analytics",
    "owner": "pcjinglang",
    "version": "1.0.0",
    "license": null,
    "verificationStatus": "Indexed source record"
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/bilibili-analytics",
    "downloadUrl": "https://openagent3.xyz/downloads/bilibili-analytics",
    "agentUrl": "https://openagent3.xyz/skills/bilibili-analytics/agent",
    "manifestUrl": "https://openagent3.xyz/skills/bilibili-analytics/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/bilibili-analytics/agent.md"
  }
}