ahref

Extract links from an HTML page

A small Rust library that parses HTML and returns a tags or their URLs.

Rust · Parsing

Problem

Sometimes you need the links on a page without pulling in a full HTML engine.

Role

Author and maintainer

Approach

Wrote a focused parser. parse_tags returns the a elements. parse_links returns the URLs. Install with cargo add ahref.

Outcome

A crate that does one job: find links in HTML.

Extracting a tags is a narrow problem. A general HTML toolkit is usually more than the caller asked for.

ahref keeps a Parser with two methods. parse_tags returns the markup of the links. parse_links returns the href values. That is the whole contract.

GitHub

Let's make the complex understandable.

Architecture, engineering leadership, and AI in development — when the system is too important to simplify, and too expensive not to own.

LinkedIn Telegram Email