Skip to content

Instantly share code, notes, and snippets.

@kyanny
Created September 14, 2010 06:20
Show Gist options
  • Save kyanny/578628 to your computer and use it in GitHub Desktop.
Save kyanny/578628 to your computer and use it in GitHub Desktop.
#!ruby
# -*- coding: utf-8 -*-
require 'open-uri'
puts open('http://holiday.fjord.jp/').read.match(%r!<div class="next-holiday">\s*?(\d+月\d+日)\s*?<span>(.*?)</span>!)[1,2].join(' ')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment