Yuwen Yang

Gsdata

資料分析v0.1.1
作者:Yuwen Yang更新於 2026-05-11共 2 個版本 · 最新版本釋出於 2026-03-04gsdata-skill@clawhub_yangyuwen-bri/gsdata-skill
資料洞察網頁抓取競品分析

據 AlphaMoat 統計,截至 2026-09,Gsdata 累計下載 1,057 次、獲 0 個星標,在全部 5,078 個 AI 技能中排名第 5,007 位,在「資料分析」分類(399 個)中排名第 393 位。

累計安裝
261
累計下載
1057
星標
-
全站排名
#5,007
全站前 99% · 「資料分析」前 99%
平台累計安裝累計下載星標評論
ClawHub ↗24918--
SkillHub ↗2611057-—

各平台的計數口徑不同,統計時間不一致。

這個技能是做什麼的

憑據經 GSDATA_APP_KEY 與 GSDATA_APP_SECRET 環境變數鑑權,禁止使用硬編碼測試 key;需要 requests 庫(缺模組時 pip install requests 一次)。介面卡:python3 ./gsdata_adapter.py(從技能目錄以相對路徑執行,對映檔案 gsdata_tool_mapping_v1.json 一併打包)。八條規則:新請求先跑 --dry-run 驗證路由/動作對映;預設只用只讀動作;聊天介面(如 Telegram)回答時必須附加 --param size=5 等小數值,防止巨大 JSON 灌入對話上下文;使用者未明確確認絕不執行寫類動作,寫類動作要求 --allow-write;先返回簡潔摘要並附路由與所用的關鍵欄位;分頁上限——API 嚴格限制每頁最多 20 條(傳 size=100 也預設 20),取大資料集要用 --param page=1、page=2 迴圈,不要試圖一次取超過 20 條;抓多頁前先用 --param limit=1 測試搜尋探測響應 JSON 裡的 numFound 欄位,按 ceil(numFound/20) 計算總頁數——專用的 num_found 動作在日期引數上有 bug,不要用它估算。快速命令:list-tools 發現端點能力、關鍵詞檢索(keywords_include=人工智慧)、資料量探測、熱點事件(gsdata_pubsent_hot event_list)、小紅書賬號搜尋。寫操作(需確認+--allow-write):輿情預警規則建立/更新/開啟/關閉、我的榜單分組增刪、賬號增刪。

資料釋出於 2026-10-29

可以用來做什麼

  • 輿情關鍵詞檢索、熱點事件查詢、平台榜單查詢
  • 小紅書/微博/抖音等平台的賬號資料查詢
  • 輿情預警規則與榜單分組的寫操作(需明確確認)

什麼時候用

  • 使用者提出輿情檢索、熱點事件、平台榜單、賬號資料、小紅書/微博/抖音資料查詢需求時使用
  • 觸發詞:"gsdata"、"清博"、"輿情"、"熱點"、"榜單"、"關鍵詞檢索"

示例提示詞

以下是根據技能文件生成的示例,不代表實際執行結果。

幫我查一下最近一週"人工智慧"的微博輿情
搜一下小紅書上叫 AI 的賬號
給"新能源"這個關鍵詞建一個輿情預警規則

月度資料趨勢

累計下載1057
51680710972026-03 · 累計下載 5562026-05 · 累計下載 7112026-06 · 累計下載 7662026-07 · 累計下載 9042026-08 · 累計下載 9512026-09 · 累計下載 105726-0326-09
星標-
0112026-03 · 星標 -2026-05 · 星標 -2026-06 · 星標 -2026-07 · 星標 -2026-08 · 星標 -2026-09 · 星標 -26-0326-09

2026-09 起統計方法調整:同名技能按作者分別統計,並覆蓋全部技能。圖中虛線為調整前的月份,與之後的資料不直接比較,也不計算跨越調整的增長。

月份累計下載環比星標
2026-091057—-
2026-08951+5.2%-
2026-07904+18.0%-
2026-06766+7.7%-
2026-05711—-
2026-03556—-

SKILL.md 原文

以下是作者釋出的原始檔案,按純文字顯示,本站未做修改或稽核;其中的連結不可點選,命令請核實後再執行。抓取於 2026-10-23。

3.7 KB · ClawHub v0.1.1
---
name: gsdata
version: 1.0.0
author: yangyuwen-bri
license: MIT
description: |
  Use GSData open platform via local adapter script for account/content/rank/pubsent/nlp queries.
  Use when user asks for 舆情检索、热点事件、平台榜单、账号数据、小红书/微博/抖音等数据查询。
  Triggers: "gsdata", "清博", "舆情", "热点", "榜单", "关键词检索".
env:
展開全部(共 106 行)
  - GSDATA_APP_KEY
  - GSDATA_APP_SECRET
---

# GSData Skill

This skill allows you to query the GSData open platform for public sentiment (舆情), rankings (榜单), and account data. 

**Prerequisites:**
This skill requires the `requests` library. If a module cannot be found, you may need to run `pip install requests` once.

**Credentials:**
Authentication is handled via the `GSDATA_APP_KEY` and `GSDATA_APP_SECRET` environment variables. Do not attempt to use hardcoded test keys. 

## Adapter Usage
Use the bundled python script to interact with the API:

`python3 ./gsdata_adapter.py`

*Note: The script and its mapping `gsdata_tool_mapping_v1.json` are bundled in this skill's directory. Always run the script via relative path (`./gsdata_adapter.py`) from this directory.*

## Rules
1. For a new request, run `--dry-run` first to verify route/action mapping.
2. Default to read-only actions.
3. **CRITICAL FOR CONVERSATIONS**: If you are answering a user in a chat interface (like Telegram), you MUST append `--param size=5` (or a similarly small number) to prevent dumping enormous JSON payloads into the chat context.
4. Never run write-like actions unless user explicitly confirms.
5. For write-like actions, require `--allow-write`.
6. Return a concise summary first; included route + key fields used.
7. **PAGINATION LIMIT**: The API strictly enforces a maximum of 20 items per page (e.g., passing `size=100` defaults to 20). To fetch large datasets, use a loop with `--param page=1`, `--param page=2`, etc. Do NOT attempt to fetch more than 20 items in a single call.
8. **TOTAL COUNT ESTIMATION**: Before scraping multiple pages for `gsdata_pubsent_search`, ALWAYS probe the total volume first by running a test search with `--param limit=1` and checking the `numFound` field in the response JSON. Calculate total pages as `ceil(numFound / 20)`. (Note: The dedicated `num_found` action has a bug with date parameters and should NOT be used for this purpose).

## Quick Commands

**1. Discover endpoint capabilities:**
```bash
python3 ./gsdata_adapter.py list-tools
```

**2. Keyword search (with size limit):**
```bash
python3 ./gsdata_adapter.py invoke \
  --tool gsdata_pubsent_search \
  --action search \
  --param keywords_include=人工智能 \
  --param size=5 
```

**3. Probe data volume estimation (returns `numFound`):**
```bash
python3 ./gsdata_adapter.py invoke \
  --tool gsdata_pubsent_search \
  --action search \
  --param keywords_include=人工智能 \
  --param date_start=2026-03-01 \
  --param date_end=2026-03-04 \
  --param media_type=weibo \
  --param limit=1
```

**4. Hot events:**
```bash
python3 ./gsdata_adapter.py invoke \
  --tool gsdata_pubsent_hot \
  --action event_list \
  --params '{"type":"1"}'
```

**5. Xiaohongshu account search:**
```bash
python3 ./gsdata_adapter.py invoke \
  --tool gsdata_account \
  --action search \
  --platform xiaohongshu \
  --param xiaohongshu_name=AI \
  --param size=2
```



## Write Actions (Explicit Confirmation Required)

Examples:
- `gsdata_pubsent_warning create_rule/update_rule/open_rule/close_rule`
- `gsdata_myrank_group group_add/group_del`
- `gsdata_myrank_account acct_add/acct_del/acct_add_by_url`

When approved, append `--allow-write`:

```bash
python3 ./gsdata_adapter.py invoke \
  --tool gsdata_pubsent_warning \
  --action create_rule \
  --params '{"name":"demo"}' \
  --allow-write
```

「資料分析」分類下的熱門技能

資料月份:2026-09 · 下載/星標/安裝數聚合自公開技能註冊庫(ClawHub、SkillHub),按月更新。口徑說明見資料方法。