Skip to content

Instantly share code, notes, and snippets.

@rbnpercy rbnpercy/articles.rb
Last active Aug 14, 2019

Embed
What would you like to do?
require 'feedjira'
def hn_articles
url = "https://news.ycombinator.com/rss"
feed = Feedjira::Feed.fetch_and_parse url
arts = feed.entries.each do |item|
puts "Item: #{item.title}"
puts "&& Link: #{item.url}"
end
return arts.inspect
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.