V
Vlad Smith
Hi guys.
I`m using mechanize to get some images from the web application. I have
2 problems:
1-st : I can`t catch the links. The whole link looks like <a href =
"https://.../reports/switch_accounts.html?..."See full report</a>
And there`re couple of these that i try to catch with a singe regexp
i tried this :
<code>
final.links_withhref => %r{/switch_accounts.html/} ).each do |link|
puts link.href, link.text
end
</code>
but it doesn`t display anything, but i`m pretty much sure there`re those
links in the 'final' webpage
The second problem - how can i actually save the images to a selected
folder(assuming i have the links for them)?
Thatnks everybody, any ideas are really appreciated
I`m using mechanize to get some images from the web application. I have
2 problems:
1-st : I can`t catch the links. The whole link looks like <a href =
"https://.../reports/switch_accounts.html?..."See full report</a>
And there`re couple of these that i try to catch with a singe regexp
i tried this :
<code>
final.links_withhref => %r{/switch_accounts.html/} ).each do |link|
puts link.href, link.text
end
</code>
but it doesn`t display anything, but i`m pretty much sure there`re those
links in the 'final' webpage
The second problem - how can i actually save the images to a selected
folder(assuming i have the links for them)?
Thatnks everybody, any ideas are really appreciated