I'm using RoR, I will specify a link to a web page in my application and here are the things that I want to do
(1) I want to extract all the links in the web page
(2) Find if they are links to pdf file(basically a pattern match)
(3)I want to download file in link(a pdf for example) and store them on my system.
I tried using Anemone, but it crawls the entire website which overshoots my needs and also how do I download the files in corresponding links?
Cheers