Receber por email
← Voltar para o catálogo

import-web-markdown-with-gather

Importa páginas da web como markdown limpo usando a CLI local 'gather'. Utilize para buscar URLs como markdown, recortar páginas em notas, arquivar artigos legíveis ou converter conteúdo web para contexto.

161estrelas
Atualizado há 7 meses

Ver no GitHub ↗ Licença: MIT

Como adicionar

/plugin marketplace add ttscoff/gather-cli

O comando exato pode variar conforme o repositório. Confira o README no GitHub.

Para o autor da skill

Cole no README do seu repo

Mostra que sua skill está catalogada na Skillteca, gera backlink e tráfego rastreável.

[![Skillteca](https://www.skillteca.com.br/api/badge/import-web-markdown-with-gather/svg)](https://www.skillteca.com.br/skills/import-web-markdown-with-gather)

Alerta por categoria

Receba novas skills de Escrita e Conteúdo toda segunda

1 email curto, só com as skills novas de Escrita e Conteúdo. 4 minutos de leitura, sem spam, cancela com 1 clique.

Você confirma o email no primeiro envio. Sem spam. Cancela com 1 clique.

Ler descrição completa

Import Web Markdown With Gather

Purpose

Use gather as the default local tool for converting a URL into readable markdown.

Recommended Defaults

Run gather with these settings unless the user asks otherwise:

gather --metadata-yaml --inline-links --no-paragraph-links "<url>"

Rationale:

  • --metadata-yaml: Adds title/date/source in front matter for downstream indexing.
  • --inline-links: Keeps links close to text for RAG/chunk readability.
  • --no-paragraph-links: Avoids repeated reference blocks after each paragraph.

Required Workflow

  1. Validate input:
  2. Accept only http:// or https:// URLs.
  3. If input is not a URL, ask for one.
  4. Run gather:
  5. Primary command:

``bash gather --metadata-yaml --inline-links --no-paragraph-links "<url>" ``

  1. On failure, retry with fallback mode:
  2. First fallback:

``bash gather --metadata-yaml --inline-links --no-paragraph-links \ --no-readability "<url>" ``

  • If the page still fails and raw HTML is available, pass HTML directly:

``bash printf "%s" "$HTML" | gather --html --stdin --metadata-yaml \ --inline-links --no-paragraph-links ``

  1. Return markdown text as the main result.

Output Contract

When successful, return:

  • url: original URL
  • title: extracted title when available
  • markdown: full markdown body
  • used_fallback: true if --no-readability or --html path was used

Safety And Limits

  • Do not execute JavaScript from pages.
  • Do not follow login-only pages automatically.
  • Preserve the original URL in output metadata.
  • If output is empty or too short, report a partial extraction warning.

Examples

Basic import:

gather --metadata-yaml --inline-links --no-paragraph-links "https://example.com/article"

Fallback when readability extraction fails:

gather --metadata-yaml --inline-links --no-paragraph-links --no-readability "https://example.com/article"

Optional Variants

  • Add title only:

``bash gather --title-only "<url>" ``

  • Plain body without source/title injection:

``bash gather --no-include-source --no-include-title "<url>" ``

Compartilhar X LinkedIn