# Twitter/X Reader

> Use when fetching tweet or X Article content (text, author, engagement metrics, embedded images) into local Markdown — downloads all images and generates frontmatter for PKM.

- Skill: `aashutosh396/twitter-x-reader` (Agent Skill)
- Install (CLI): `npx get-skill add aashutosh396/twitter-x-reader`
- Raw SKILL.md: https://api.skillmd.com/api/skills/aashutosh396/twitter-x-reader/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Docs & Writing
- Author: aashutosh396 (https://skillmd.com/u/aashutosh396)
- Updated: 2026-11-24
- Page: https://skillmd.com/skills/aashutosh396/twitter-x-reader

---


# Twitter/X Reader

Fetch tweet/article content with full media support.

## Full article mode (recommended for X Articles w/ images)
```bash
uv run --with pyyaml python scripts/fetch_article.py <article_url> [output_dir]
```
Does: structured data via `twitter-cli` (likes/retweets/bookmarks) → content+images via `jina.ai` → downloads images to `attachments/YYYY-MM-DD-AUTHOR-TITLE/` → complete Markdown w/ local image refs + YAML frontmatter. No setup (twitter-cli auto-installed via uv).

## Simple mode (text-only, Jina API)
```bash
export JINA_API_KEY="..."   # from jina.ai
curl "https://r.jina.ai/https://x.com/USER/status/ID" -H "Authorization: Bearer ${JINA_API_KEY}"
scripts/fetch_tweets.sh url1 url2 url3   # batch
```

## Output
```
output_dir/
├── YYYY-MM-DD-title.md          # frontmatter: source, author, date, likes, retweets, bookmarks
└── attachments/YYYY-MM-DD-author-title/ {01-image.jpg, ...}
```

## URL formats
`x.com/USER/status/ID` (posts), `x.com/USER/article/ID` (long-form), `twitter.com/...` (legacy).

Prefer full article mode for X Articles with images (Jina is text-only).

