Forum: Ruby on Rails Script to obtain dom

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
916981dcb90882ae0f984dc33de0a592?d=identicon&s=25 Felipe Vergara (Guest)
on 2008-10-09 22:16
(Received via mailing list)
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

<html>
 <body>
     <div id="news"> This evening three persons went to visit....</div>
 </body>
</html>

I need to get the content inside that div

--
Felipe Vergara Contesse
Ingeniería Civil Industrial UC
23e4fc3add5443f51e55663cfc245d24?d=identicon&s=25 Erol Fornoles (Guest)
on 2008-10-10 03:28
(Received via mailing list)
On Oct 10, 4:15 am, "Felipe Vergara" <felverg...@gmail.com> wrote:
>  </body>
> </html>
>
> I need to get the content inside that div
>
> --
> Felipe Vergara Contesse
> Ingeniería Civil Industrial UC

Take a look at Hpricot.

http://code.whytheluckystiff.net/hpricot/
916981dcb90882ae0f984dc33de0a592?d=identicon&s=25 Felipe Vergara (Guest)
on 2008-10-10 17:37
(Received via mailing list)
thank you very much it works very good!!!

On Thu, Oct 9, 2008 at 9:27 PM, Erol Fornoles
<erol.fornoles@gmail.com>wrote:

> > <html>
>
> Take a look at Hpricot.
>
> http://code.whytheluckystiff.net/hpricot/
> >
>


--
Felipe Vergara Contesse
Ingeniería Civil Industrial UC
This topic is locked and can not be replied to.