Powered by AppSignal & Oban Pro
Would you like to see your link here? Contact us

Playground

rss.livemd

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"]}")