# Leeching site with ruby

**URL:** <https://www.ruby-forum.com/t/leeching-site-with-ruby/135422>\
**Category:** Ruby\
**Created:** [April 22, 2008, 2:24am UTC](https://www.ruby-forum.com/t/leeching-site-with-ruby/135422 "2008-04-22T02:24:59Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![halfbyte](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/7ab992/32.png) [@halfbyte](https://www.ruby-forum.com/u/halfbyte)\
**Post date:** [April 22, 2008, 2:24am UTC](https://www.ruby-forum.com/t/leeching-site-with-ruby/135422/1 "2008-04-22T02:24:59Z")

</div>

Hello, i need something similiar to hpriocot but with site leeeching  
functionality. I need some code which grab a given page from url, leechs  
images, css, and convert url&etc. Does you know something about similiar  
solution? Or i need write this code by myself?

---

<div class="post-metadata">

**Author:** ![halfbyte](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/7ab992/32.png) [@halfbyte](https://www.ruby-forum.com/u/halfbyte)\
**Post date:** [April 22, 2008, 2:35am UTC](https://www.ruby-forum.com/t/leeching-site-with-ruby/135422/2 "2008-04-22T02:35:58Z")

</div>

You may need to write it yourself. Mechanize and hpricot work really  
well.  
You may not need mechanize for your solution though. The code shouldn’t  
be  
that difficult to write.  
James

On Mon, Apr 21, 2008 at 7:25 PM, Jan Kowalski  
[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

---

<div class="post-metadata">

**Author:** ![halfbyte](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/7ab992/32.png) [@halfbyte](https://www.ruby-forum.com/u/halfbyte)\
**Post date:** [April 22, 2008, 2:40am UTC](https://www.ruby-forum.com/t/leeching-site-with-ruby/135422/3 "2008-04-22T02:40:39Z")

</div>

On Apr 21, 2008, at 6:25 PM, Jan Kowalski wrote:

> Hello, i need something similiar to hpriocot but with site leeeching  
> functionality. I need some code which grab a given page from url,  
> leechs  
> images, css, and convert url&etc. Does you know something about  
> similiar  
> solution? Or i need write this code by myself?

man wget

a @ [http://codeforpeople.com/](http://codeforpeople.com/)

---

<div class="post-metadata">

**Author:** ![halfbyte](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/7ab992/32.png) [@halfbyte](https://www.ruby-forum.com/u/halfbyte)\
**Post date:** [April 22, 2008, 2:43am UTC](https://www.ruby-forum.com/t/leeching-site-with-ruby/135422/4 "2008-04-22T02:43:00Z")

</div>

why do you need ruby? you could just shell out to wget in mirroring  
mode.

martin

On Mon, Apr 21, 2008 at 5:25 PM, Jan Kowalski
