Skip to content
Back to skills

Crawl From X

ASecurity

X/Twitter 帖子抓取工具。管理关注用户列表,自动抓取当天最新帖子,导出 Markdown。

  • 14 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added September 7, 2026
content-marketingpythonbashgit

Security analysis

A100/100

Pro scans all 20 files and shows the line behind each finding

Scanned September 7, 2026

npx -y skills add modbender/skill-library-mcp --skill crawl-from-x --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Crawl From X?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Crawl From X
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/modbender-crawl-from-x/badge)](https://www.skillsdirectory.com/skills/modbender-crawl-from-x)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: crawl-from-x
description: X/Twitter 帖子抓取工具。管理关注用户列表,自动抓取当天最新帖子,导出 Markdown。
---

# Crawl From X

X/Twitter 帖子抓取工具。

⚠️ **前置要求**:需要 **OpenClaw Browser Relay** 和浏览器扩展。

---

## 安装

```bash
npx clawhub@latest install crawl-from-x
```

安装位置:
- `$CLAWD/skills/crawl-from-x/scripts/craw_hot.py` - 主脚本
- `$CLAWD/skills/crawl-from-x/users.txt` - 用户列表
- `$CLAWD/skills/crawl-from-x/results/` - 抓取结果

---

## 准备

### 1. 安装 OpenClaw

访问 https://github.com/openclaw/openclaw 下载安装。

### 2. 安装浏览器扩展

在 OpenClaw 设置中进入 "Browser Relay",安装扩展。完成后扩展显示绿色图标。

### 3. 启动 Browser Relay

```bash
openclaw browser start
openclaw browser status  # 确认显示 "browser: enabled"
```

### 4. 登录 X 账号

在安装了扩展的浏览器中登录 X (Twitter)。

---

## 快速开始

```bash
cd $CLAWD/skills/crawl-from-x/scripts

# 添加用户
python3 craw_hot.py add username

# 列出用户
python3 craw_hot.py list

# 删除用户
python3 craw_hot.py remove username

# 抓取所有用户
python3 craw_hot.py crawl

# 抓取单个用户
python3 craw_hot.py crawl username
```

**结果文件:**
- `posts_YYYYMMDD_HHMMSS.md` - 完整内容(Markdown),媒体 URL 已替换为本地路径
- `posts_YYYYMMDD_HHMMSS.txt` - URL 列表(仅全部用户抓取)
- `images/` - 下载的图片和视频

**说明:**
- 单用户抓取和全部用户抓取使用相同的策略
- 所有媒体文件(图片、动图、视频)都会下载到 `images/` 目录
- Markdown 文件中的媒体 URL 会自动替换为本地相对路径

---

## 注意事项

1. **浏览器要求**:必须安装 OpenClaw 浏览器扩展
2. **登录状态**:浏览器必须登录 X 账号
3. **速率限制**:脚本已内置随机延迟
4. **私密账号**:无法抓取私密账号内容

Files in this skill

  • README.md8.5 KB
  • SKILL.md2 KB
  • results/posts_20260301_164616.md7.5 KB
  • results/posts_20260301_164616.txt824 B
  • results/posts_20260301_165604.md54.7 KB
  • results/posts_20260301_165604.txt4.1 KB
  • results/posts_20260301_171829.md50.6 KB
  • results/posts_20260301_171829.txt3.8 KB
  • results/posts_20260301_171829_中文.md49.9 KB
  • results/posts_20260301_175706.md55.2 KB
  • results/posts_20260301_175706.txt4.4 KB
  • results/posts_20260301_175706_中文.md55.9 KB
  • results/posts_20260301_182535.txt662 B
  • results/posts_20260301_182742.txt2.1 KB
  • results/posts_20260301_184522.md1.4 KB
  • results/posts_20260301_220456.md54 KB
  • results/posts_20260301_220456.txt4.3 KB
  • results/posts_20260301_220456_zh.md53.7 KB
  • results/posts_20260301_223057.txt229 B
  • results/posts_20260301_225804.md27.6 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…