Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
blog-quiz-easy-2
#!/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
You can’t perform that action at this time.