require open-uri
print "Enter a URL"
add = gets
open(#{add}) do |f|
j = f.read.scan(/<img/)
jlen = j.length
puts jlen
end
Is the code I have.
For some reason, ruby is giving me the error:findimages.rb:8: syntax error, unexpected kEND, expecting $end
Why is this?