# How to download a list of PDF files?

**URL:** <https://www.ruby-forum.com/t/how-to-download-a-list-of-pdf-files/136060>\
**Category:** Ruby\
**Created:** [April 28, 2008, 3:44pm UTC](https://www.ruby-forum.com/t/how-to-download-a-list-of-pdf-files/136060 "2008-04-28T15:44:41Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![shayaan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/bbce88/32.png) [@shayaan](https://www.ruby-forum.com/u/shayaan)\
**Post date:** [April 28, 2008, 3:44pm UTC](https://www.ruby-forum.com/t/how-to-download-a-list-of-pdf-files/136060/1 "2008-04-28T15:44:41Z")

</div>

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.free.fr/OWN/](http://jeepgarage.free.fr/OWN/) is the site

I found some code on

[http://snippets.dzone.com/posts/show/2468](http://snippets.dzone.com/posts/show/2468)

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

Any help would be good.

---

<div class="post-metadata">

**Author:** ![shayaan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/bbce88/32.png) [@shayaan](https://www.ruby-forum.com/u/shayaan)\
**Post date:** [April 28, 2008, 4:07pm UTC](https://www.ruby-forum.com/t/how-to-download-a-list-of-pdf-files/136060/2 "2008-04-28T16:07:52Z")

</div>

On Mon, Apr 28, 2008 at 3:44 PM, Shayaan Siddiqui  
[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> [http://snippets.dzone.com/posts/show/2468](http://snippets.dzone.com/posts/show/2468)
> 
> and i tried modifying it to download the files on the site.
> 
> Any help would be good.

Easy solution:

wget -r -np [http://jeepgarage.free.fr/OWN/](http://jeepgarage.free.fr/OWN/)

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

J.

---

<div class="post-metadata">

**Author:** ![shayaan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/bbce88/32.png) [@shayaan](https://www.ruby-forum.com/u/shayaan)\
**Post date:** [April 28, 2008, 5:03pm UTC](https://www.ruby-forum.com/t/how-to-download-a-list-of-pdf-files/136060/3 "2008-04-28T17:03:13Z")

</div>

Jano S. wrote:

> > 
> 
> wget -r -np [http://jeepgarage.free.fr/OWN/](http://jeepgarage.free.fr/OWN/)
> 
> 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.
