Elixir Feed Parser

Build Status

Elixir Atom/RSS Parser. Depends on Erlang's xmerl xml parser.

Current status

The code is currently in alpha state and my first ever written piece of Elixir code.

Setup

Add elixir-feed-parser to your mix dependencies and application.

def application do
[applications: [:"elixir_feed_parser"]]
end
defp deps do
[{:"elixir_feed_parser", "~> 0.0.1"}]
end

Then run mix deps.get to install it.

Parsing feeds

feed = ElixirFeedParser.parse(xml_string)
title = feed.title

The feed map provides the following properties which is a normalization based on the Atom and RSS2 standards. Whenever an attribute is normalized the original attribute is provided with a corresponding namespace.

For example the url attribute is actually a link element as defined by the RSS2 standard, therefore we additionally expose the rss2:link attribute.

List of feed properties

List of article properties