Feedex

Build StatusHex.pm Version

Elixir Feed Parser originally extracted from reader.uy, a minimalist news reader.

Installation

Add feedex to your list of dependencies in mix.exs:

def deps do
  [{:feedex, "~> 0.1"}]
end

Usage

> {:ok, feed} = Feedex.fetch_and_parse "http://9gagrss.com/feed/"
...

> {:ok, feed} = Feedex.parse "<rss version=\"2.0\" xmlns:content=\"http://purl.org/rss/1.0/modules/content/\" ..."
...

> feed.title
"9GAG RSS feed"

> feed.entries |> Enum.map(&(&1.title))
["Are you the lucky one ?", "Hide and Seek", "Playing guitar for little cate", ...]

Results

Feed

Entry

Documentation

Documentation is available at https://hexdocs.pm/feedex

License

This software is licensed under the MIT license.

Credits

This project was inspired by Feedjira and PicoFeed.