← 返回 Skills 市场
loverun321

Live Location Mapper

作者 loverun321 · GitHub ↗ · v1.0.0
cross-platform ⚠ suspicious
320
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install live-location-mapper
功能描述
Search Douyin live streams by location, obtain coordinates via Baidu Maps API, and generate static maps marking live stream positions and estimated crowds.
使用说明 (SKILL.md)

live-location-mapper

Version: 1.0.0 Price: 1.0 USDT per use

通过抖音直播搜索地点,并在百度地图上标记位置。

触发条件

用户要求:

  • 查看某地附近的直播
  • 查找直播位置
  • 在地图上标记直播地点
  • 估算某地人流量

核心功能

1. 搜索抖音直播

  1. 打开抖音搜索:https://www.douyin.com/search/[地点]直播
  2. 筛选"直播"tab
  3. 记录正在直播的账号和位置描述

2. 获取经纬度坐标

需要百度地图 API Key (AK)

  1. 申请地址:https://lbsyun.baidu.com/
  2. 免费申请,创建应用获取AK

使用API获取坐标:

import requests
ak = "你的AK"

# 搜索地点坐标
url = f"https://api.map.baidu.com/place/v2/search?query=外滩&region=上海&output=json&ak={ak}"
data = requests.get(url).json()
lat = data['results'][0]['location']['lat']
lng = data['results'][0]['location']['lng']

3. 生成地图标记图

import requests

ak = "你的AK"
locations = [
    ("主播名(位置)", 经度, 纬度),
    ("东方明珠", 121.506269, 31.2455),
    ("南京路步行街", 121.486099, 31.241924),
]

# 生成静态地图
center = f"{lng},{lat}"
markers = "|".join([f"{lng},{lat}" for _,lng,lat in locations])
url = f"https://api.map.baidu.com/staticimage/v2?center={center}&zoom=15&width=800&height=600&markers={markers}&markerStyles=-1,http://api.map.baidu.com/images/marker_red.png,-1,25,25&ak={ak}"

# 下载图片
img = requests.get(url).open('map.png', 'wb').write(img.content)

使用示例

用户要求查找上海外滩的直播并在地图上标记:

  1. 搜索"上海外滩直播" → 找到10+个直播间
  2. 记录主要位置:外滩、东方明珠、南京路步行街等
  3. 用百度地图API获取各位置经纬度
  4. 生成带标记的静态地图图片
  5. 发送给用户

注意事项

  • 百度地图AK需要申请,地址:https://lbsyun.baidu.com/
  • 直播是位置估算的,不是精确位置
  • 需要标记多个点时用"|"分隔坐标
  • 静态地图API返回PNG图片

常见位置坐标(上海外滩)

地点 经度 纬度
外滩观景台 121.499318 31.238549
东方明珠 121.506269 31.2455
南京路步行街 121.486099 31.241924
十六铺码头 121.50488 31.233644
外白渡桥 121.49696 31.249557
安全使用建议
This skill appears to do what it says (find Douyin live streams and plot them on Baidu maps) but has important gaps and privacy implications. Before installing: (1) Ask the publisher to add the Baidu Maps API key (AK) to the skill metadata (requires.env / primary credential) instead of pasting keys into chat, and provide details how keys are stored/used. (2) Request the source or at least a vetted code example — the provided Python snippets contain bugs and aren't safe to run as-is. (3) Consider Douyin terms and streamer privacy: collecting and plotting inferred streamer locations may violate platform policies or privacy norms. (4) Do not supply high-privilege API keys; create a scoped/test AK with minimal quota and monitor usage. (5) If you need payment/monetization (1 USDT per use), ask how payments are processed and why it is mentioned in SKILL.md. These clarifications would likely move the assessment from suspicious toward benign.
功能分析
Type: OpenClaw Skill Name: live-location-mapper Version: 1.0.0 The skill bundle provides instructions and code snippets for an AI agent to search for Douyin live streams by location and visualize them using the Baidu Maps API. The Python code in SKILL.md contains a minor syntax error regarding file writing but demonstrates legitimate use of the Baidu Maps Static Image and Place Search APIs. There is no evidence of data exfiltration, malicious intent, or harmful prompt injection; the requirement for a Baidu API key is transparently documented for the user.
能力评估
Purpose & Capability
The SKILL.md describes searching Douyin and using the Baidu Maps API (AK) to geocode and render static maps, which aligns with the name/description — however the package metadata declares no required environment variables or primary credential while the instructions explicitly require a Baidu Maps API Key. The README also mentions a per-use price (1.0 USDT) but the skill metadata provides no payment integration. These omissions are incoherent with the skill's stated needs.
Instruction Scope
Runtime instructions tell the agent to open Douyin search pages, record live account names and location descriptions, call Baidu Maps APIs with an API key, and download static images. The instructions require collecting location descriptions of streamers (privacy-sensitive) and rely on an API key not declared in the registry. The guidance for estimating crowd sizes is vague (open-ended), which could grant broad discretion. There are also coding errors in the example snippets (broken image-download code and variable reuse), indicating low-quality/untested instructions.
Install Mechanism
This is an instruction-only skill with no install spec and no code files, so nothing is written to disk or fetched during install. That reduces install-surface risk.
Credentials
The instructions require a Baidu Maps API Key (AK) to function, but requires.env and primary credential fields are empty in registry metadata. Requesting a network API key for mapping is proportionate to the purpose, but failing to declare it in metadata prevents automated secrets handling and review; providing an API key to an unvetted/instruction-only skill risks key leakage. No other unrelated credentials are requested.
Persistence & Privilege
The skill does not request always: true and is user-invocable only. It does not declare writes to system config or persistent privileges. Autonomous invocation is allowed by default but not by itself a red flag here.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install live-location-mapper
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /live-location-mapper 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
live-location-mapper 1.0.0 – 首次发布 - 支持根据地点搜索抖音直播房间,并记录位置描述。 - 集成百度地图API,可快速获取各直播相关位置的经纬度。 - 自动生成并返回带直播地点标记的静态百度地图图片。 - 支持按用户要求批量标记多个直播或知名地标的位置。 - 适用于估算地区人流量及查找并展示直播地点分布。
元数据
Slug live-location-mapper
版本 1.0.0
许可证
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Live Location Mapper 是什么?

Search Douyin live streams by location, obtain coordinates via Baidu Maps API, and generate static maps marking live stream positions and estimated crowds. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 320 次。

如何安装 Live Location Mapper?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install live-location-mapper」即可一键安装,无需额外配置。

Live Location Mapper 是免费的吗?

是的,Live Location Mapper 完全免费(开源免费),可自由下载、安装和使用。

Live Location Mapper 支持哪些平台?

Live Location Mapper 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Live Location Mapper?

由 loverun321(@loverun321)开发并维护,当前版本 v1.0.0。

💬 留言讨论