← 返回 Skills 市场
satnamra

Google Trends

作者 satnamra · GitHub ↗ · v1.0.0
cross-platform ⚠ suspicious
2712
总下载
1
收藏
19
当前安装
1
版本数
在 OpenClaw 中安装
/install google-trends
功能描述
Monitor Google Trends - get trending searches, compare keywords, and track interest over time. Use for market research, content planning, and trend analysis.
使用说明 (SKILL.md)

Google Trends Monitoring

Monitor and analyze Google Trends data for market research, content planning, and trend tracking.

Capabilities

  1. Daily Trending Searches - What's trending today in any country
  2. Keyword Interest Over Time - Historical trend data for keywords
  3. Keyword Comparison - Compare multiple keywords
  4. Related Topics & Queries - Discover related searches
  5. Regional Interest - See where keywords are most popular

Usage

Get Trending Searches (Today)

Use web_fetch to get Google Trends RSS:

# US Daily Trends
curl -s "https://trends.google.com/trending/rss?geo=US" | head -100

# Lithuania
curl -s "https://trends.google.com/trending/rss?geo=LT" | head -100

# Worldwide
curl -s "https://trends.google.com/trending/rss?geo=" | head -100

Check Keyword Interest

For detailed keyword analysis, use the Google Trends website:

# Open in browser
open "https://trends.google.com/trends/explore?q=bitcoin&geo=US"

# Or fetch via web_fetch for basic data
web_fetch "https://trends.google.com/trends/explore?q=bitcoin"

Compare Keywords

# Compare multiple terms (comma-separated)
open "https://trends.google.com/trends/explore?q=bitcoin,ethereum,solana&geo=US"

Scripts

trends-daily.sh

Get today's trending searches:

#!/bin/bash
# Usage: ./trends-daily.sh [country_code]
# Example: ./trends-daily.sh LT

GEO="${1:-US}"
curl -s "https://trends.google.com/trending/rss?geo=$GEO" | \
  grep -o '\x3Ctitle>[^\x3C]*\x3C/title>' | \
  sed 's/\x3C[^>]*>//g' | \
  tail -n +2 | \
  head -20

trends-compare.sh

Generate comparison URL:

#!/bin/bash
# Usage: ./trends-compare.sh keyword1 keyword2 keyword3
# Example: ./trends-compare.sh bitcoin ethereum solana

KEYWORDS=$(echo "$@" | tr ' ' ',')
echo "https://trends.google.com/trends/explore?q=$KEYWORDS"

Example Workflows

Morning Market Research

1. Get US trending searches
2. Get LT trending searches  
3. Check if any trends relate to our business
4. Report interesting findings

Content Planning

1. Compare potential blog topics
2. Find which has more search interest
3. Check seasonal patterns
4. Decide on content focus

Competitor Monitoring

1. Compare brand names
2. Track interest over time
3. Identify when competitors spike
4. Investigate causes

Cron Job Integration

Set up automated trend monitoring:

// Example cron job for daily trends report
{
  "name": "Daily Trends Report",
  "schedule": { "kind": "cron", "expr": "0 9 * * *" },
  "payload": {
    "kind": "agentTurn",
    "message": "Get today's Google Trends for US and LT. Summarize top 10 trends for each. Highlight any tech/business related trends."
  }
}

Countries

Common country codes:

  • US - United States
  • LT - Lithuania
  • DE - Germany
  • GB - United Kingdom
  • FR - France
  • JP - Japan
  • (empty) - Worldwide

Limitations

  • Google Trends doesn't provide official API
  • Rate limiting may apply for heavy usage
  • Data is relative (not absolute numbers)
  • Historical data limited to ~5 years for detailed view

Tips

  1. Use specific terms - "iPhone 15 Pro" vs just "iPhone"
  2. Check seasonality - Some trends are cyclical
  3. Compare with baseline - Use a stable term for reference
  4. Look at related queries - Discover new opportunities
  5. Monitor competitors - Track brand interest over time
安全使用建议
This skill fetches public Google Trends pages (trends.google.com) and runs small shell commands to format results — it does not ask for credentials or install code. Before installing: (1) confirm your runtime has curl/grep/sed/nl (the skill didn't declare required binaries); (2) be aware network requests to Google will reveal your IP to Google and may be rate-limited; (3) the SKILL.md references a compare script that isn't included — verify expected files; (4) the skill uses the 'open' command in examples (may behave differently on non-macOS systems); (5) if you prefer the agent not run automatically on a schedule, disable autonomous/cron invocation in your agent config. Overall this appears coherent and proportional to its purpose.
功能分析
Type: OpenClaw Skill Name: google-trends Version: 1.0.0 The skill is classified as suspicious due to a critical shell injection vulnerability found in the `trends-daily.sh` script, which is also defined in `SKILL.md`. The script directly interpolates the `$GEO` variable (derived from user input `$1`) into a `curl` command without proper sanitization. This allows for arbitrary command execution if an attacker can control the input provided to the script by the AI agent, posing a significant Remote Code Execution (RCE) risk. While the skill's stated purpose is benign, this lack of input sanitization constitutes a high-severity vulnerability.
能力评估
Purpose & Capability
Name/description (Google Trends monitoring) aligns with the provided instructions and scripts: they fetch publicly-available RSS/explore URLs from trends.google.com and format or construct URLs for comparison.
Instruction Scope
SKILL.md and trends-daily.sh only perform public web fetches and local text processing (curl, grep, sed, nl, open). The doc shows a trends-compare.sh snippet but that file is not present in the bundle — minor inconsistency. Instructions reference the 'open' command (platform-specific) and rely on common CLI tools that the runtime must provide.
Install Mechanism
No install spec — instruction-only skill and a tiny included script. Nothing is downloaded or written during install, which minimizes disk/remote code risk.
Credentials
No environment variables, credentials, or config paths are requested. The skill's network access is limited to public Google Trends endpoints, which matches its purpose.
Persistence & Privilege
always is false and there is no elevated persistence or cross-skill configuration. Autonomous invocation is allowed by default (normal); the example cron payload would cause the agent to run the described workflow, which is consistent with the skill's purpose.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install google-trends
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /google-trends 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial ClawHub publish - Google Trends monitoring skill
元数据
Slug google-trends
版本 1.0.0
许可证
累计安装 20
当前安装数 19
历史版本数 1
常见问题

Google Trends 是什么?

Monitor Google Trends - get trending searches, compare keywords, and track interest over time. Use for market research, content planning, and trend analysis. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 2712 次。

如何安装 Google Trends?

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

Google Trends 是免费的吗?

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

Google Trends 支持哪些平台?

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

谁开发了 Google Trends?

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

💬 留言讨论