Playground
RSS
Mix.install([
{:req, github: "wojtekmach/req"},
{:easyxml, github: "wojtekmach/easyxml"}
])
doc = Req.get!("https://dashbit.co/feed").body |> EasyXML.parse!()
doc["/feed/title"]
EasyXML.xpath(doc, "//entry[1]")
doc |> EasyXML.xpath("//entry") |> Enum.take(3) |> Enum.map(&"#{&1["updated"]} - #{&1["title"]}")