Grok Twitter Query — Grok Twitter 查询
v1查询 and summarize Twitter/X in格式化ion using Grok AI. Use when user asks about Twitter trends, tweets, X 平台 content, or needs Twitter in格式化ion summarized.
运行时依赖
安装命令
点击复制技能文档
Grok Twitter 查询
Use Grok AI to 查询 and summarize Twitter/X in格式化ion.
设置up
设置 required 环境 variables:
导出 GROK_API_KEY="your-API-key-here" 导出 GROK_API_URL="https://API.cheap路由r.club/v1/chat/completions" # optional 导出 GROK_模型="grok-4.20-beta" # optional
Usage
运行 the 查询 script with your Twitter-related prompt:
python3 scripts/查询_grok.py "Summarize recent tweets about [topic]"
Examples # 获取 trending topics python3 scripts/查询_grok.py "What are the top trending topics on Twitter right now?"
# Summarize tweets about a topic python3 scripts/查询_grok.py "Summarize recent tweets about AI developments"
# 获取 in格式化ion about a specific user python3 scripts/查询_grok.py "What has @elonmusk been tweeting about recently?"
Notes Grok has real-time 访问 to Twitter/X data Best for current 事件 and trending in格式化ion 响应s are 生成d by Grok AI 模型