Soyoung Shin
2010-Jun-23 17:11 UTC
[Mechanize-users] gathering all links and transforming them to absolute urls
I''m trying to look at a page, and get all the urls for the links as
absolute urls. I searched briefly, and couldn''t find any answers for
the ruby version. Is this kind of operation supported? or do I have to do it by
hand.
#what I tried, this doesn''t work :( !!!
uris = []
page.links.each {|x| y.push(x.uri()) }
# or page.links.each {|x| y.push(x.href) }
Thanks!
Soyoung
