Created
March 6, 2015 05:44
-
-
Save y13i/96dae8e12bc24ab38bef to your computer and use it in GitHub Desktop.
AWS Service Health Dashboardから全RSS FeedのURLを下載
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require "nokogiri" | |
require "open-uri" | |
site_uri = "http://status.aws.amazon.com" | |
html = Nokogiri::HTML(open site_uri) | |
feed_uris = html.css("a[href$=rss]").map do |node| | |
site_uri + node.attributes["href"].value | |
end | |
puts feed_uris |
Author
y13i
commented
Mar 6, 2015
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment