OpenParable
Skip to content
← Back to skills

Searcharvester Extract

Research
searcharvester-extract

Searcharvester Extract is an Agent Skill for research published in the vakovalskii/searcharvester repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.

Fetch a web page and extract its main content as clean markdown via trafilatura. Strips navigation, ads, and footers automatically. Supports size presets (short/medium/long) and full mode with pagination for very long documents. Use after `searcharvester-search` to actually read the pages behind your URLs.

View on GitHub ↗
QUICK START

How to use this skill

Bring this guide into your coding agent with a prompt tailored to the tool you use.

  1. Open your project in Codex.
  2. Copy and paste the prompt below.
  3. Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/vakovalskii/searcharvester/blob/HEAD/hermes_skills/searcharvester-extract/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/searcharvester-extract, but wait for my approval before writing files or running scripts.

Copying this prompt does not install or run the skill. Review third-party files before use.

Searcharvester Extract

When to Use

  • You have a specific URL and need its readable content (articles, docs, wiki pages).
  • You followed up a searcharvester-search result and want to read it.
  • You need a clean markdown version of a page for citation quoting.
  • A document is too long for a single read — the f preset paginates it.

Do not use this skill for:

  • Discovery of URLs (use searcharvester-search first).
  • Non-HTML resources (PDFs, images) — the service expects HTML pages.

Procedure

The extract endpoint lives at $SEARCHARVESTER_URL (default http://tavily-adapter:8000). Use the helper script.

Size presets

PresetChars returnedUse case
s5 000Quick summary, LLM with small context
m10 000Default — most articles
l25 000Deep reading
ffull (paginated by 25 000)Very long docs; take additional pages via page param

Single page extraction

python3 SKILL_DIR/scripts/extract.py --url "https://en.wikipedia.org/wiki/Docker_(software)" --size m

Full document with pagination

# Page 1 (also returns metadata: total pages, id for follow-up pages)
python3 SKILL_DIR/scripts/extract.py --url "https://long.example.com/article" --size f

# Fetch page 2 using id from first response
python3 SKILL_DIR/scripts/extract.py --id b275618ca10e6c62 --page 2

Output

JSON printed to stdout:

{
  "id": "b275618ca10e6c62",
  "url": "...",
  "title": "Page title",
  "size": "m",
  "content": "# Markdown body\n...",
  "chars": 10000,
  "total_chars": 33430,
  "pages": {"current": 1, "total": 1, "page_size": 10000}
}

Use content directly — it's ready markdown with headings, lists, tables, links.

Parameters reference

FlagValuesDefault
--urlURLrequired (unless --id given)
--sizes/m/l/fm
--id16-char hex (from previous response)—
--pageint ≥ 11 (use with --id)

Pitfalls

  • 422 error: trafilatura couldn't find extractable main-content (the page is almost entirely JavaScript or ads). Try another source from your search results.
  • 502 error: the site blocked us or returned an error. Try another URL.
  • Cache expired: /extract/{id}/{page} returns 404 after 30 minutes. Re-run with --url --size f to get a fresh id.
  • total_chars >> chars: your content is truncated. Either raise to --size l, or switch to --size f and paginate.

Verification

Successful response has content non-empty and chars > 0. If you need the full document, check total_chars vs chars and decide whether to fetch more pages.