Stream RSS feeds with this GenServer.
Some of the features of LiveRSS are:
- Automatically polling of RSS feeds with a GenServer process
- Configurable polling rate
- RSS feed parsing using pure Elixir with
feeder_ex
LiveRSS.Poll.start_link(
name: :new_york_times,
url: "https://rss.nytimes.com/services/xml/rss/nyt/World.xml",
refresh_every: :timer.hours(2)
)
LiveRSS.get(:new_york_times)
# %FeederEx.Feed{
# id: nil,
# author: nil,
# entries: [],
# image: "https://static01.nyt.com/images/misc/NYT_logo_rss_250x40.png",
# language: "en-us",
# link: "https://www.nytimes.com/section/world",
# subtitle: nil,
# summary: nil,
# title: "NYT > World News",
# updated: "Tue, 12 Jul 2022 00:11:46 +0000",
# url: "https://rss.nytimes.com/services/xml/rss/nyt/World.xml"
# }
The package can be installed using hex.pm by adding
liverss
to your list of dependencies in mix.exs
:
def deps do
[
{:liverss, "~> 0.1.0"}
]
end
The documentation for this library can be found at HexDocs.