Google Trends
Use this skill to get Google Trends daily trending searches quickly, without browser scraping.
Quick start
CODEBLOCK0
Workflow
- 1. Pick geo code (
HK, US, JP, etc.). - Fetch daily trends with
daily --geo <CODE>. - Choose output format:
-
table for terminal quick check
-
json for downstream automation
-
markdown for chat/report paste
- 4. If needed, save with
--out:
-
.json for structured pipelines
-
.csv for Sheets import
Commands
1) List common geo codes
CODEBLOCK1
2) Fetch daily trends
CODEBLOCK2
Options:
- -
--geo (required): region code - INLINECODE11 (default
20): max trend rows - INLINECODE13 (
table|json|markdown, default table) - INLINECODE16 (
traffic|feed|recency, default traffic)
-
traffic: hottest-first by
approx_traffic
-
feed: keep RSS original order
-
recency: newest-first by pubDate
- -
--out: optional file path (.json or .csv) - INLINECODE26 (default
20)
Output schema
Each trend includes:
- - INLINECODE28
- INLINECODE29
- INLINECODE30
- INLINECODE31
- INLINECODE32
- up to 2 related news items (
title/snippet/url/source)
Notes
- - This skill targets daily trending searches feed (not full historical keyword timeseries).
- Feed source: Google Trends RSS endpoint by geo.
- Keep parsing defensive; feed fields can evolve.
- For implementation details aligned to the existing connector repo, read:
- INLINECODE34
Resources
- - Script: INLINECODE35
- Reference: INLINECODE36
技能名称: google-trends
详细描述:
Google Trends
使用此技能可快速获取 Google 趋势每日热门搜索,无需浏览器抓取。
快速开始
bash
python scripts/googletrendsrss.py list-geos
python scripts/googletrendsrss.py daily --geo HK --limit 20 --sort traffic --format table
python scripts/googletrendsrss.py daily --geo US --sort traffic --format json --out /tmp/us-trends.json
python scripts/googletrendsrss.py daily --geo JP --sort traffic --out /tmp/jp-trends.csv
工作流程
- 1. 选择地区代码(HK、US、JP 等)。
- 使用 daily --geo
获取每日趋势。 - 选择输出格式:
- table 用于终端快速查看
- json 用于下游自动化
- markdown 用于聊天/报告粘贴
- 4. 如需保存,使用 --out 参数:
- .json 用于结构化管道
- .csv 用于导入表格
命令
1) 列出常用地区代码
bash
python scripts/googletrendsrss.py list-geos
2) 获取每日趋势
bash
python scripts/googletrendsrss.py daily --geo HK --limit 20 --sort traffic --format table
选项:
- - --geo(必填):地区代码
- --limit(默认 20):最大趋势行数
- --format(table|json|markdown,默认 table)
- --sort(traffic|feed|recency,默认 traffic)
- traffic:按 approx_traffic 热度优先
- feed:保持 RSS 原始顺序
- recency:按 pubDate 最新优先
- - --out:可选文件路径(.json 或 .csv)
- --timeout(默认 20)
输出结构
每条趋势包含:
- - title
- approxtraffic
- link
- pubdate
- picture
- 最多 2 条相关新闻条目(title/snippet/url/source)
注意事项
- - 此技能针对 每日热门搜索 数据源(非完整历史关键词时间序列)。
- 数据源:按地区划分的 Google 趋势 RSS 端点。
- 保持解析的防御性;数据源字段可能变化。
- 如需与现有连接器仓库一致的实现细节,请阅读:
- references/google-trends-connector-notes.md
资源
- - 脚本:scripts/googletrendsrss.py
- 参考:references/google-trends-connector-notes.md