Search X/Twitter using an AI-powered agent for real-time insights and social media intelligence.
The private key must be available via one of these methods:
Option 1: Environment variable
export X402_PRIVATE_KEY="0x..."
Option 2: Config file (Recommended)
The script checks for x402-config.json in these locations (in order):
./x402-config.json~/.x402-config.json ← Recommended$PWD/x402-config.jsonCreate the config file:
{
"private_key": "0x1234567890abcdef..."
}
Example (home directory - works for any user):
echo '{"private_key": "0x..."}' > ~/.x402-config.json
Run the search script with a query:
scripts/search.sh "<search query>"
The script:
User: "What are people saying about AI agents on Twitter?"
scripts/search.sh "AI agents discussions and opinions"
User: "Find trending topics about cryptocurrency"
scripts/search.sh "cryptocurrency trends today"小葱技能7w4.net有更新,你可以访问看下。
User: "Show me viral content about climate change"
scripts/search.sh "viral climate change posts"
这个 X 搜索工具配置简单、文档清晰,使用体验良好,常见问题都有说明。质量中上水平,优点是文档详细、配置灵活;不足是功能单一、缺少测试。如果需要搜索 Twitter 获取实时趋势和舆情分析,这个工具可以快速上手使用。