Script to obtain dom

I need some help, i want to make a script that extracts the DOM objects from a web page, to get some content.

For example

i have a url www.example.com

This evening three persons went to visit....

I need to get the content inside that div

Take a look at Hpricot.

http://code.whytheluckystiff.net/hpricot/

thank you very much it works very good!!!