Skip to content

Instantly share code, notes, and snippets.

@jonallured
Created May 14, 2018 13:38
Show Gist options
  • Save jonallured/00256a914fcd91584f8e2e8ad1f2500c to your computer and use it in GitHub Desktop.
Save jonallured/00256a914fcd91584f8e2e8ad1f2500c to your computer and use it in GitHub Desktop.
Loop with Feedjira
feed_urls = ["http://jonallured.com/atom.xml", "http://feedjira.com/blog/feed.xml"]
feed_urls.each do |feed_url|
feed = Feedjira.fetch_and_parse(feed_url)
# ...do something with feed here
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment