pageinfo-rs 0.2.2

CLI tool that analyzes web pages and produces structured LLM-friendly output
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use thiserror::Error;

#[derive(Debug, Error)]
#[allow(dead_code)]
pub enum AnalyzerError {
    #[error("fetch failed for {url}: HTTP {status}")]
    Fetch { url: String, status: u16 },

    #[error("parse error for {url}: {reason}")]
    Parse { url: String, reason: String },

    #[error("invalid URL: {0}")]
    InvalidUrl(String),

    #[error("IO error: {0}")]
    Io(#[from] std::io::Error),
}