Skip to content
RSS/Atom parser for Elixir.
Elixir
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
config
lib
test
.gitignore
.travis.yml
README.md
mix.exs
mix.lock

README.md

Diane Build Status

RSS/Atom parser for Elixir.

⚠️ Atom feed parsing is not functional at this time. ⚠️

Installation

Add {:diane, "~> 0.0.1"} to your mix.exs deps.

Use

raw_xml = "..." # Feed in raw string form.
{:ok, feed} = Diane.parse(raw_xml)

channel = feed.channels |> List.first
channel.title
# xkcd.com

channel.description
# xkcd.com: A webcomic of romance and math humor.

channel.items |> Enum.map(fn(item) -> item.title end)
# ['Keyboard Mash', 'Vodka', ...]

TODO

  • RSS 2.0 feed parsing
  • RSS 1.x feed parsing
  • Atom feed parsing
  • Logic to determine what kind of feed to parse.

Goals

  1. 100% Elixir RSS/Atom parser.
  2. Super fast.
  3. Adhere to RSS/Atom specs.
  4. RSS Spec
  5. Atom Spec
You can’t perform that action at this time.