← 返回
未分类 中文

X Search Highlights

Search and extract high-value posts from X (Twitter) with engagement-based ranking. Use when user asks to search X, find best posts, get highlights from Twit...
从X(Twitter)搜索并提取高价值推文,按互动量排序。当用户要求搜索X、查找最佳推文、获取亮点时使用。
ghostwritten ghostwritten 来源
未分类 clawhub v1.0.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 380
下载
💾 0
安装
1
版本
#engagement-rank#latest#social-media#twitter#web-automation#x

概述

X Search Highlights

Search and extract high-value posts from X (Twitter) with engagement-based ranking.

Quick Start

# Basic search
~/.openclaw/skills/x-search-highlights/scripts/x-search.sh "Claude Code"

# With filters
~/.openclaw/skills/x-search-highlights/scripts/x-search.sh "AI Agent" 10 5 1000 markdown

Description

Extract valuable posts from X search results based on engagement metrics (likes, retweets, replies, views). Ideal for discovering trending discussions, finding expert insights, or curating content for research.

When to Use

Activate when user asks to:

  • Search X/Twitter for specific topics
  • Find "best" or "high-value" posts on a subject
  • Extract posts with engagement data
  • Curate content from X discussions
  • Discover trending discussions

Trigger phrases:

  • "Search X for [topic]"
  • "Find best posts about [topic] on Twitter"
  • "Get highlights from X search"
  • "Extract valuable tweets"

Input Parameters

ParameterTypeDefaultDescription
---------------------------------------
topicstringrequiredSearch query (e.g., "Claude Code", "AI Agent")
maxResultsnumber5Maximum number of posts to return
minLikesnumber0Minimum likes threshold (filter low-engagement)
scrollTimesnumber3Number of scroll iterations (more = more candidates)
sortBystring"engagement"Sort method: engagement, likes, views, recent
outputFormatstring"markdown"Output format: markdown, json, summary

Output Format

Markdown (default)

## 1. [Post Title/Summary]

- **标题**:[Content summary]
- **日期**:YYYY-MM-DD
- **标签**:#tag1 #tag2
- **亮点**:🎯 [Key insight] 💡 [Unique perspective]
- **互动**:X 回复 · X 转发 · X 点赞 · X 浏览
- **链接**:[点击阅读原文](URL)

JSON

{
  "total": 10,
  "posts": [
    {
      "text": "...",
      "author": "...",
      "likes": 1000,
      "retweets": 200,
      "views": 50000
    }
  ]
}

Workflow

  1. Open search page: Navigate to X search with query
  2. Load content: Scroll N times to collect candidate posts
  3. Extract data: Parse DOM for post content and engagement metrics
  4. Rank and filter: Calculate engagement scores, apply filters
  5. Format output: Return results in requested format

Core Algorithm

Engagement Score:

Score = (likes × 2) + (retweets × 5) + (views × 0.01)

Weight Rationale:

  • Retweets (×5): Strongest signal (public sharing)
  • Likes (×2): Approval signal (low barrier)
  • Views (×0.01): Reach indicator (easily inflated)

Dependencies

  • bb-browser ≥ 0.11.2
  • Chrome/Chromium browser
  • X.com login state (in bb-browser profile)

Installation

# Via ClawHub (after publishing)
clawhub install x-search-highlights

# Or clone from GitHub
git clone https://github.com/Ghostwritten/x-search-highlights.git ~/.openclaw/skills/x-search-highlights

Usage Examples

# Search for "OpenClaw"
scripts/x-search.sh "OpenClaw"

# Get 10 posts with min 1000 likes
scripts/x-search.sh "AI Agent" 10 3 1000

# JSON output
scripts/x-search.sh "RAG" 20 5 0 json

Troubleshooting

No posts found:

  • Check bb-browser is running: bb-browser status
  • Verify X.com login state
  • Try different search keywords

JSON parsing errors:

  • Ensure bb-browser version ≥ 0.11.2
  • Check Chrome/Chromium is accessible

Rate limits:

  • Reduce scrollTimes parameter
  • Add delays between operations

Limitations

  • X lazy loading limits initial results
  • Bookmark data not available via scraping
  • Rate limits may affect large-scale scraping
  • Search quality depends on X algorithm

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-05-07 07:30 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

data-analysis

Tavily 搜索

jacky1n7
通过 Tavily API 进行网页搜索(Brave 替代方案)。当用户要求搜索网页、查找来源或链接,且 Brave 网页搜索不可用时使用。
★ 274 📥 100,994
ai-agent

File Transfer

ghostwritten
根据聊天上下文智能传输文件,支持 MIME 验证和进度跟踪,兼容 Telegram 及可扩展渠道。
★ 0 📥 698
data-analysis

AdMapix

fly0pants
AdMapix 原始数据层,提供广告创意、应用、排名、下载/收入及市场元数据。返回 AdMapix API 的结构化 JSON;调用方...
★ 297 📥 142,072