My program collects all redirection addresses but I could not do the same with the image tags
require 'nokogiri'
require 'net/http'
pagina = Net::HTTP.get(ARGV[0],ARGV[1])
enlaces = Nokogiri::HTML(pagina).xpath('//a[@href]').map { |link| link['href'] }
imagenes = Nokogiri::HTML(pagina).xpath('//img/src').map { |link| link['src'] }
puts "Los enlaces son: "
puts enlaces
puts "Las imagenes son: "
puts imagenes