Install
openclaw skills install zeelin-social-watchZeelin Social Watch: monitor social media sentiment, trending events, platform rankings, and account data via GSData open platform. Use when user asks for 舆情...
openclaw skills install zeelin-social-watchThis skill allows you to monitor social media sentiment (舆情), trending events (热点), platform rankings (榜单), and account data across platforms like Weibo, Xiaohongshu, and Douyin — powered by the GSData open platform.
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.
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.
--dry-run first to verify route/action mapping.--param size=5 (or a similarly small number) to prevent dumping enormous JSON payloads into the chat context.--allow-write.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.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).1. Discover endpoint capabilities:
python3 ./gsdata_adapter.py list-tools
2. Keyword search (with size limit):
python3 ./gsdata_adapter.py invoke \
--tool gsdata_pubsent_search \
--action search \
--param keywords_include=人工智能 \
--param size=5
3. Probe data volume estimation (returns numFound):
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:
python3 ./gsdata_adapter.py invoke \
--tool gsdata_pubsent_hot \
--action event_list \
--params '{"type":"1"}'
5. Xiaohongshu account search:
python3 ./gsdata_adapter.py invoke \
--tool gsdata_account \
--action search \
--platform xiaohongshu \
--param xiaohongshu_name=AI \
--param size=2
Examples:
gsdata_pubsent_warning create_rule/update_rule/open_rule/close_rulegsdata_myrank_group group_add/group_delgsdata_myrank_account acct_add/acct_del/acct_add_by_urlWhen approved, append --allow-write:
python3 ./gsdata_adapter.py invoke \
--tool gsdata_pubsent_warning \
--action create_rule \
--params '{"name":"demo"}' \
--allow-write
GSDATA_APP_KEYrequiredGSDATA_APP_SECRETrequired