Rizz.Parser (Rizz v0.1.0)
View SourceResponsible for parsing RIZZ XML feeds into Elixir data structures.
Uses ElixirFeedParser as the base parser and extends it with AI metadata from the RIZZ specification.
Summary
Functions
Enhances a standard feed with RIZZ AI metadata.
Extracts JSON-LD data from a script tag if present.
Parses a RIZZ XML string into a Feed struct.
Parses the AI models string into a list of model names.
Functions
Enhances a standard feed with RIZZ AI metadata.
Extracts JSON-LD data from a script tag if present.
Parses a RIZZ XML string into a Feed struct.
Example
iex> xml = "<?xml version=\"1.0\"?><rss version=\"2.0\"><channel><title>Feed</title></channel></rss>"
iex> {:ok, feed} = Rizz.Parser.parse(xml)
iex> feed.title
"Feed"
Parses the AI models string into a list of model names.