English | 한국어
site-harvester
Collect every article behind a login wall — politely, resumably, on schedule.
Many membership sites are SPAs (React and the like) backed by a JSON API. This plugin turns that into a local data pipeline: find the hidden API, harvest your own OAuth token once via a real browser login, then fetch everything through plain API calls — paced like a human reader, resumable after any crash, and scheduled to pick up new content while you sleep. Sites without an API work too: collect from an RSS feed (rss mode) or rendered pages via the login browser profile (dom mode).
Runs on Claude Code, Codex, Antigravity, and Hermes Agent. Built and battle-tested on large login-walled SPA sites — full-archive initial sweeps paced over days, OAuth login, scheduled incremental updates.
Install
# Claude Code
claude plugin marketplace add epicsagas/site-harvester
claude plugin install site-harvester@site-harvester
# Codex
codex plugin marketplace add epicsagas/site-harvester
codex plugin add site-harvester@site-harvester
# Antigravity
agy plugin install https://github.com/epicsagas/site-harvester
# Grok Build (xAI)
grok plugin marketplace add epicsagas/site-harvester
grok plugin install site-harvester@site-harvester --trust
# Hermes Agent — the install scanner flags this plugin's AGENTS.md guide as a
# CRITICAL "persistence" finding (heuristic: any agent-config file reference),
# and dangerous verdicts cannot be --force'd. Temporarily disable install
# scanning, install, then re-enable:
hermes config set plugins.scan_on_install false
hermes plugins install https://github.com/epicsagas/site-harvester --enable
hermes config set plugins.scan_on_install true
hermes gateway restart
Quick Start
Prerequisites: Python 3.10+, an agent host (Claude Code / Codex / Antigravity / Hermes Agent), and your own
account on the target site.
You: "Collect all articles from https://example.com — membership login
required, I subscribe. Keep picking up new ones for two weeks."
That's it. The skill walks recon → scaffold → login → smoke test → scheduled
sweep. You log in once in the opened browser window; everything after that is
automatic.
How It Works
| Stage | What happens |
|---|
| 🔍 | Recon | Check for an RSS feed, grep the site's JS bundle for its hidden API — endpoints, pagination, token storage — pick the mode |
| 🔑 | Token harvest | Headed browser login (you, once); the SPA's own token lands in a local profile |
| 📦 | Collect | Sweep at human pace — API calls, feed entries, or rendered pages; images downloaded |
| 🔁 | Resume | Per-item state file — crash, Ctrl-C, reboot: it picks up exactly where it stopped |
| ⏰ | Schedule | Cron picks up newly published items; a window guard self-disables the run |
| 🗄️ | Data layer | Raw API JSON is committed as the source of truth; notes and the local reader derive from it |
Site-specific code is confined to one SITE adapter block at the top of each template. Pick a mode — api (JSON endpoints), rss (feed as index), or dom (rendered pages via the login profile) — and fill that mode's small hook group from recon. Everything else (flock, 401 auto-refresh, HTML→Markdown, image handling, commits) is generic.
Why site-harvester?
| site-harvester | Hand-rolled Playwright | ArchiveBox | wget/httrack |
|---|
| Login-gated content | ✅ own-session token | ✅ but fragile | ⚠️ limited | ❌ |
| Speed | ✅ plain API calls | ⚠️ full page loads | ⚠️ heavy | ✅ |
| Resume mid-sweep | ✅ per-item state | 🔧 build it yourself | ✅ | ⚠️ |
| Scheduled increments | ✅ built-in | 🔧 build it yourself | ✅ | ❌ |
| Structured JSON output | ✅ raw API responses | 🔧 parse DOM | ⚠️ | ❌ |
| Full-page snapshots | ❌ | ⚠️ | ✅ | ✅ |