I need to make a program in ruby that given an Internet address by command line argument (argv) return a list of the images found (the images in HTML respond to the tag "") and a list of all the links that are internet addresses to link other pages (the links in HTML respond to the label )
So far separate the string of the code of the page with the signs> and
The code at the moment
require 'net/http'
pagina= Net::HTTP.get(ARGV[0], '/index.html')
xx = pagina.split(/[<,>]/)
puts xx
puts xx.scan(/a href=/)