← 返回
未分类 中文

X Thread Reader

Fetch full text or generate a PDF from any X/Twitter thread using twitter-thread.com. Use when asked to "get the full thread", "read this tweet", "save this...
使用 twitter-thread.com 获取任意 X/Twitter 话题的完整文本或生成 PDF。当用户要求“获取完整话题”“阅读此推文”“保存此内容”等时使用。
ngmeyer ngmeyer 来源
未分类 clawhub v1.0.0 1 版本 99793.8 Key: 无需
★ 0
Stars
📥 484
下载
💾 0
安装
1
版本
#latest#reader#threads#twitter#x

概述

X Thread Reader

Fetch full text or generate a PDF from any X/Twitter thread via twitter-thread.com.

How It Works

Text mode: curl the twitter-thread.com /pdf/{tweet_id} page. The full article is embedded in the HTML tag — no browser or JS rendering needed. Fast, reliable, zero dependencies beyond curl and python3.

PDF mode: Uses Chrome headless (--print-to-pdf) or agent-browser to render and save the PDF. Browser required because the PDF generation page uses JS.

Limitations

  • Requires the thread to be indexed on twitter-thread.com — if not indexed, visit the thread URL in a browser first to trigger indexing
  • Does NOT work for X Articles (x.com/i/article/...) — those require a logged-in browser
  • Does NOT work for protected/private accounts or deleted tweets

Quick Usage

Get full thread text

scripts/x_thread.sh text "https://x.com/user/status/1234567890"

Download PDF

scripts/x_thread.sh pdf "https://x.com/user/status/1234567890"
# Custom output path:
scripts/x_thread.sh pdf "https://x.com/user/status/1234567890" "/tmp/my-thread.pdf"

Accepts full X/Twitter URL or raw tweet ID.

Output Format

The text mode outputs structured content:

  • Author and date from the thread
  • Full article text — complete thread content, all tweets concatenated
  • Source URL for citation

Suitable for archiving to Obsidian, note-taking apps, or further analysis.

Gotchas

  • The /pdf/{id} URL returns HTML (not a PDF) — the article is in the tag, extracted via python3. If twitter-thread.com changes their HTML structure, this extraction breaks silently (empty output).
  • Thread must be indexed on twitter-thread.com first. Fresh threads (< 30 min old) may not be available yet. The /t/{id} page triggers indexing when visited in a browser.
  • macOS grep does not support -P (PCRE). All grep patterns in the script use -oE (extended regex) for portability.
  • Very long threads may truncate in the meta description. If output seems incomplete, compare against the PDF version.
  • The script extracts from the first match — if the page structure adds multiple, it may grab the wrong one.

Troubleshooting

"Thread not found" error:

The thread is not yet indexed on twitter-thread.com. Visit https://twitter-thread.com/t/{tweet_id} in a browser to trigger indexing, wait ~30s, then retry.

Empty article text:

twitter-thread.com may have changed their HTML structure. Check if the tag still contains the article content.

X Article links (x.com/i/article/...):

These are NOT threads. They require a logged-in browser session and cannot be fetched with this skill.

Protected/deleted tweets:

The skill cannot access tweets from private accounts or tweets that have been deleted.

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-30 14:43 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

knowledge-management

Obsidian

steipete
操作 Obsidian 仓库(纯 Markdown 笔记)并通过 obsidian-cli 自动化。
★ 441 📥 104,636
knowledge-management

Summarize

paudyyin
智能摘要工具,自动为长文本、文档、网页生成摘要,提取要点与关键词,支持自定义摘要长度。
★ 956 📥 517,383
knowledge-management

web-tools-guide

user_ec205dbb
MANDATORY before calling web_search, web_fetch, browser, or opencli. Contains required error-handling procedures (web_se
★ 61 📥 157,277