Skip to content
lukes edited this page May 4, 2011 · 2 revisions

Use check :rss to watch an RSS source. You'll always need to specify a source in a :from => "url" parameter,

Herald.watch do
  check :rss, :from => "example.com/.rss"
  _for "keywords"
end

Multiple sources

Give :from an array value to watch more than one RSS source

Herald.watch do
  check :rss, :from => ["example.com/1.rss", "example.com/2.rss"]
  _for "keywords"
end

Short method

Alternatively, use the watch_rss short method

Herald.watch_rss :from => "example.com/.rss" do
  _for "keywords"
end

See also