Skip to content

Instantly share code, notes, and snippets.

@cawel
Created November 25, 2015 23:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cawel/0e0455cfed318ae7007e to your computer and use it in GitHub Desktop.
Save cawel/0e0455cfed318ae7007e to your computer and use it in GitHub Desktop.
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