[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

How to download a list of PDF files?

Shayaan Siddiqui

4/28/2008 1:45:00 PM

Hello

I have a site with many PDF files. I could right click and save each
file but I'm learning Ruby so I thought I'd try to write a script to do
that for me

http://jeepgarage.fr... is the site

I found some code on

http://snippets.dzone.com/posts...

and i tried modifying it to download the files on the site.

Any help would be good.
--
Posted via http://www.ruby-....

2 Answers

Jano Svitok

4/28/2008 2:07:00 PM

0

On Mon, Apr 28, 2008 at 3:44 PM, Shayaan Siddiqui
<shayaan.siddiqui@mac.com> wrote:
> Hello
>
> I have a site with many PDF files. I could right click and save each
> file but I'm learning Ruby so I thought I'd try to write a script to do
> that for me
>
> http://jeepgarage.fr... is the site
>
> I found some code on
>
> http://snippets.dzone.com/posts...
>
> and i tried modifying it to download the files on the site.
>
> Any help would be good.

Easy solution:

wget -r -np http://jeepgarage.fr...

Ruby solution: have a look at Mechanize and/or scrubit.

J.

Mohit Sindhwani

4/28/2008 3:02:00 PM

0

Jano Svitok wrote:
> On Mon, Apr 28, 2008 at 3:44 PM, Shayaan Siddiqui
> <shayaan.siddiqui@mac.com> wrote:
>
>> Hello
>>
>> I have a site with many PDF files. I could right click and save each
>> file but I'm learning Ruby so I thought I'd try to write a script to do
>> that for me
>>
>> http://jeepgarage.fr... is the site
>>
>> I found some code on
>>
>> http://snippets.dzone.com/posts...
>>
>> and i tried modifying it to download the files on the site.
>>
>> Any help would be good.
>>
>
> Easy solution:
>
> wget -r -np http://jeepgarage.fr...
>
> Ruby solution: have a look at Mechanize and/or scrubit.
>
> J.
>

And another easy solution would be the Firefox plugin: DownThemAll

Cheers,
Mohit.
4/28/2008 | 11:00 PM.