Created
November 25, 2015 23:51
-
-
Save cawel/0e0455cfed318ae7007e to your computer and use it in GitHub Desktop.
blog-quiz-easy-2
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
#!/usr/bin/env ruby | |
require 'open-uri' | |
open('http://www.imdb.com/title/tt0421054/') do |f| | |
f.read.match(/User Rating:<\/b>\s*([\d\.]+\/[\d\.]+)<\/b>/) | |
puts $1 | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment