← 返回
开发者工具

X Tweet Fetcher

Fetch full tweets, long tweets, quoted tweets, and X Articles from X/Twitter without login or API keys, using no dependencies and zero configuration.
无需登录或API密钥,零配置且无依赖,即可从X/Twitter获取完整推文、长推文、引用推文及X文章。
hjw21century
开发者工具 clawhub v0.1.0 1 版本 99249.6 Key: 无需
★ 15
Stars
📥 5,123
下载
💾 274
安装
1
版本
#latest

概述

X Tweet Fetcher

Fetch tweets from X/Twitter without authentication. Uses FxTwitter API.

What It Can Fetch

Content TypeSupport
----------------------
Regular tweets✅ Full text + stats
Long tweets (Twitter Blue)✅ Full text
X Articles (long-form)✅ Complete article text
Quoted tweets✅ Included
Stats (likes/RT/views)✅ Included

Usage

CLI

# JSON output
python3 scripts/fetch_tweet.py --url "https://x.com/user/status/123456"

# Pretty JSON
python3 scripts/fetch_tweet.py --url "https://x.com/user/status/123456" --pretty

# Text only (human readable)
python3 scripts/fetch_tweet.py --url "https://x.com/user/status/123456" --text-only

From Agent Code

from scripts.fetch_tweet import fetch_tweet

result = fetch_tweet("https://x.com/user/status/123456")
tweet = result["tweet"]

# Regular tweet
print(tweet["text"])

# X Article (long-form)
if tweet["is_article"]:
    print(tweet["article"]["title"])
    print(tweet["article"]["full_text"])  # Complete article
    print(tweet["article"]["word_count"])

Output Format

{
  "url": "https://x.com/user/status/123",
  "username": "user",
  "tweet_id": "123",
  "tweet": {
    "text": "Tweet content...",
    "author": "Display Name",
    "screen_name": "username",
    "likes": 100,
    "retweets": 50,
    "bookmarks": 25,
    "views": 10000,
    "replies_count": 30,
    "created_at": "Mon Jan 01 12:00:00 +0000 2026",
    "is_note_tweet": false,
    "is_article": true,
    "article": {
      "title": "Article Title",
      "full_text": "Complete article content...",
      "word_count": 4847,
      "char_count": 27705
    }
  }
}

Requirements

  • Python 3.7+
  • No external packages (stdlib only)
  • No API keys
  • No login required

How It Works

Uses FxTwitter public API (api.fxtwitter.com) which proxies X/Twitter content. Articles are returned as structured blocks and reassembled into full text.

Limitations

  • Cannot fetch reply threads (only reply counts available via replies_count field)
  • Reply content would require browser automation dependencies (Camofox/Nitter)
  • These were removed to maintain zero-dependency architecture
  • --replies flag exists but returns an explanatory error message
  • Cannot fetch deleted or private tweets
  • Rate limits depend on FxTwitter service availability
  • If FxTwitter goes down, the skill won't work (no fallback)

File Structure

skills/x-tweet-fetcher/
├── SKILL.md              (this file)
└── scripts/
    └── fetch_tweet.py    (single file, zero deps)

版本历史

共 1 个版本

  • v0.1.0 当前
    2026-03-28 12:20 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

developer-tools

Github

steipete
使用 `gh` CLI 与 GitHub 交互,通过 `gh issue`、`gh pr`、`gh run` 和 `gh api` 管理议题、PR、CI 运行及高级查询。
★ 666 📥 323,791
developer-tools

CodeConductor.ai

larsonreever
AI驱动平台,提供快速全栈开发、智能体、工作流自动化及低代码AI集成的可扩展产品创建。
★ 65 📥 179,842
productivity

Trending Skills

hjw21century
{"answer":"获取 skills.sh 热门排名。用于询问技能排名或热门工具。"}
★ 0 📥 1,552