# Send Reddit Archive to your agent
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
## Fast path
- Download the package from Yavira.
- Extract it into a folder your agent can access.
- Paste one of the prompts below and point your agent at the extracted folder.
## Suggested prompts
### New install

```text
I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete.
```
### Upgrade existing

```text
I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run.
```
## Machine-readable fields
```json
{
  "schemaVersion": "1.0",
  "item": {
    "slug": "reddit-archive",
    "name": "Reddit Archive",
    "source": "tencent",
    "type": "skill",
    "category": "通讯协作",
    "sourceUrl": "https://clawhub.ai/terellison/reddit-archive",
    "canonicalUrl": "https://clawhub.ai/terellison/reddit-archive",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadUrl": "/downloads/reddit-archive",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=reddit-archive",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "packageFormat": "ZIP package",
    "primaryDoc": "SKILL.md",
    "includedAssets": [
      "SKILL.md",
      "scripts/reddit_archive.py",
      "scripts/requirements.txt"
    ],
    "downloadMode": "redirect",
    "sourceHealth": {
      "source": "tencent",
      "slug": "reddit-archive",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-05-01T04:17:43.980Z",
      "expiresAt": "2026-05-08T04:17:43.980Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=reddit-archive",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=reddit-archive",
        "contentDisposition": "attachment; filename=\"reddit-archive-1.3.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null,
        "slug": "reddit-archive"
      },
      "scope": "item",
      "summary": "Item download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this item.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/reddit-archive"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    }
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/reddit-archive",
    "downloadUrl": "https://openagent3.xyz/downloads/reddit-archive",
    "agentUrl": "https://openagent3.xyz/skills/reddit-archive/agent",
    "manifestUrl": "https://openagent3.xyz/skills/reddit-archive/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/reddit-archive/agent.md"
  }
}
```
## Documentation

### SKILL.md — Reddit Archive

Download and archive Reddit posts (images, GIFs, videos) from users or subreddits.

### Auto-Installation

This script automatically checks for and installs its dependencies on first run:

requests — Python HTTP library
yt-dlp — video downloader

If missing, it will attempt to install them via pip install --user. You can also:

Pre-install: pip3 install requests yt-dlp
Override yt-dlp path: export YTDLP_PATH=/your/custom/path/yt-dlp

### When to Use

You want to archive content from Reddit — either from a specific user (u/username) or a subreddit (r/subname).

### Usage

python3 ~/path/to/reddit_archive.py [options]

### Options

FlagDescriptionDefault-u, --userReddit username (either this OR --subreddit required)—-s, --subredditSubreddit name (either this OR --user required)—-o, --outputOutput directory~/temp/.reddit_<target>--sortSort order: hot, new, rising, top, controversialhot--timeTime filter for top/controversial: hour, day, week, month, year, all—--afterStart date (YYYY-MM-DD)No filter--beforeEnd date (YYYY-MM-DD)No filter--limitMax posts to fetch (0 = unlimited)0--imagesDownload images (jpg, png, webp)✓--gifsDownload GIFs/videos (gfycat, redgifs, imgur)✓--skip-existingSkip already-downloaded files✓--workersParallel download workers4

### Examples

# All posts from a user
python3 reddit_archive.py -u someuser

# Subreddit with date range
python3 reddit_archive.py -s orlando --after 2025-01-01 --before 2025-12-31

# Top 10 most upvoted posts of all time from a subreddit
python3 reddit_archive.py -s funny --sort top --time all --limit 10

# New posts only
python3 reddit_archive.py -s orlando --sort new

# GIFs only, specific user
python3 reddit_archive.py -u someguy --gifs

# Custom output dir
python3 reddit_archive.py -u someuser -o ~/Downloads/reddit_archive

### Output

Downloads are saved to the output directory with the following structure:

output_directory/
├── Pictures/
│   ├── {target}_{post_id}.jpg
│   ├── {target}_{post_id}.png
│   └── ...
└── Videos/
    ├── {target}_{post_id}.mp4
    └── ...

### File Organization

The skill is organized as:

reddit-archive/
├── SKILL.md              ← This file
└── scripts/
    ├── reddit_archive.py ← Main downloader script
    └── requirements.txt  ← Python dependencies

### Rate Limiting

Pauses 0.8s between Reddit API calls to avoid 403s
Uses requests with proper User-Agent header
Run one instance at a time — parallel runs trigger rate limits

### Technical Notes

Uses Reddit's JSON API (/user/{name}/submitted.json or /r/{name}/hot.json)
For galleries, extracts all images from media_metadata
GIF/video downloads use yt-dlp
Date filtering is done client-side after fetching (filters by Reddit's created_utc)
## Trust
- Source: tencent
- Verification: Indexed source record
- Publisher: terellison
- Version: 1.3.0
## Source health
- Status: healthy
- Item download looks usable.
- Yavira can redirect you to the upstream package for this item.
- Health scope: item
- Reason: direct_download_ok
- Checked at: 2026-05-01T04:17:43.980Z
- Expires at: 2026-05-08T04:17:43.980Z
- Recommended action: Download for OpenClaw
## Links
- [Detail page](https://openagent3.xyz/skills/reddit-archive)
- [Send to Agent page](https://openagent3.xyz/skills/reddit-archive/agent)
- [JSON manifest](https://openagent3.xyz/skills/reddit-archive/agent.json)
- [Markdown brief](https://openagent3.xyz/skills/reddit-archive/agent.md)
- [Download page](https://openagent3.xyz/downloads/reddit-archive)