Fetcher: save web articles

The fetcher saves web articles into your Alexandria knowledge base. Given a URL, it extracts article content and metadata, converts the body to Markdown, and creates a tagged note.

Building

cargo build -p alexandria-fetcher

The binary is called akb-fetcher.

Usage

Basic

akb-fetcher https://example.com/article

With explicit workspace path

akb-fetcher https://example.com/article --akb-path ~/my-kb

Verbose mode

akb-fetcher -v https://example.com/article

Workspace resolution

akb-fetcher finds your workspace in this order:

  1. --akb-path flag - if provided, uses this path directly
  2. Current directory - if it contains notes/, media/, trash/ subdirectories
  3. Alexandria config - reads ~/.config/alexandria/config.json for a saved workspace_path
  4. Error - asks you to specify --akb-path

What gets extracted

FieldSource (priority order)
Titleog:titletwitter:title<title><h1>
BodyReadability extraction → Markdown conversion
Authormeta[name=author]meta[property=article:author]
Published datemeta[property=article:published_time]meta[name=date]
Keywordsmeta[name=keywords] (comma-separated)
Original URLThe URL you passed in

The Fetched Articles tag

Each fetched article is tagged with Fetched Articles. This tag is created automatically on first use with these properties:

You can search and filter fetched articles with this tag.