Dan Diebolt
12/18/2008 10:14:00 AM
require 'hpricot'
doc=3DHpricot('<a class=3D"link" href=3D"detalle_movie.php?mv_id=3D618">The=
Day the Earth Stood Still</a><a class=3D"link" href=3D"detalle_movie.php?m=
v_id=3D618">The Day the Earth Stood Still</a>')
links=3D(doc/"//a.link").collect do |link|=20
=A0 [link[:href],link.inner_text]
end
=3D> [
["detalle_movie.php?mv_id=3D618", "The Day the Earth Stood Still"], ["detal=
le_movie.php?mv_id=3D618", "The Day the Earth Stood Still"]
]