reddit-archive
Installation
SKILL.md
Archiving a Reddit post with its media
Reddit stores a post's media in four different shapes, and a naive download gets three of them wrong. This skill handles all four, verified against live posts of each type.
node scripts/rdtx.mjs archive <permalink> --out ./archive --comments 200
What you get
archive/aww_1varxvd/
├── post.json raw API response, unmodified
├── post.md readable: title, author, age in years, body, nested comments
├── comments.json the full tree
├── media/ image.jpeg | gallery_01..NN.jpeg | video.mp4
└── manifest.json files, sizes, sha256 prefixes, source URLs, media_kind