关于 trendspyg
trendspyg 是一个使用 Python 库获取 Google Trends 数据的技能,涵盖当前趋势、关键词热度、相关查询和地区热度。它介绍通过 mcporter 查看并调用该库的 MCP 工具。
主要功能
- 01获取当前热门趋势
- 02查看关键词随时间的热度
- 03查找相关查询
- 04查看各地区热度
- 05列出并调用 MCP 工具
适用场景
- 01查看当前 Google Trends 趋势
- 02跟踪关键词的长期热度
- 03比较不同地区的搜索热度
MCP 相关
该技能说明如何运行 trendspyg 的 MCP 服务,并通过 mcporter 列出工具、查看架构和调用工具。
安装
复制下面的命令,在终端中运行。
$
npx skills add https:/ / github.com/ aahl/ skills --skill trendspyg安装后在 Claude Code 中输入/trendspyg确认已加载。
详细介绍
trendspyg
免费的开源 Python 库,用于获取 Google Trends 数据:当前趋势、关键词随时间变化的兴趣度、相关查询和各地区的兴趣度。持续维护的 pytrends 替代方案,提供 CLI 和 API。
export UVX_TRENDSPYG='uvx --from "trendspyg[mcp]" trendspyg-mcp'
列出可用工具
alias trendspyg-list="npx -y mcporter list --stdio '$UVX_TRENDSPYG'"
trendspyg-list --all-parameters
# Get the schema of the specified tool
trendspyg-list --json | jq '.tools[] | select(.name == "<tool_name>")'
调用指定工具
alias trendspyg-call="npx -y mcporter call --stdio '$UVX_TRENDSPYG'"
trendspyg-call --tool <tool_name> --args '{"key":"val"}'
关于 mcporter
为提高兼容性,执行命令时请使用 npx -y mcporter,而不是 mcporter。
评论
支持 Markdown