# How to get data from DOM Source other website?

**URL:** <https://www.ruby-forum.com/t/how-to-get-data-from-dom-source-other-website/189998>\
**Category:** Rails\
**Created:** [June 11, 2010, 6:40am UTC](https://www.ruby-forum.com/t/how-to-get-data-from-dom-source-other-website/189998 "2010-06-11T06:40:29Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![vuonghung12a2](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/ce7236/32.png) [@vuonghung12a2](https://www.ruby-forum.com/u/vuonghung12a2)\
**Post date:** [June 11, 2010, 6:40am UTC](https://www.ruby-forum.com/t/how-to-get-data-from-dom-source-other-website/189998/1 "2010-06-11T06:40:29Z")

</div>

Hi, everybody.

I am newbie RoR.

I want to get all data from DOM Source of website.

Can you guide me the way to use REXML? I have ready installed lib-xml  
library but I only use XML::Parser. I don’t understant it.

Thanks a lot and looking forward.

---

<div class="post-metadata">

**Author:** ![vuonghung12a2](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/ce7236/32.png) [@vuonghung12a2](https://www.ruby-forum.com/u/vuonghung12a2)\
**Post date:** [June 16, 2010, 11:03am UTC](https://www.ruby-forum.com/t/how-to-get-data-from-dom-source-other-website/189998/2 "2010-06-16T11:03:13Z")

</div>

Vuong H. wrote:

> Hi, everybody.
> 
> I am newbie RoR.
> 
> I want to get all data from DOM Source of website.
> 
> Can you guide me the way to use REXML? I have ready installed lib-xml  
> library but I only use XML::Parser. I don’t understant it.
> 
> Thanks a lot and looking forward.

Use Hpricot to parse Html/xml page which is much more easy.  
You can select particular data by finding unique css  
There are various options are available.  
Amar D.

> **[RailsTech.com is for sale | HugeDomains](https://www.hugedomains.com/domain_profile.cfm?d=railstech.com)**
>
> Customer service is our #1 priority. Get a premium domain for your website today. Financing available.

---

<div class="post-metadata">

**Author:** ![vuonghung12a2](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/ce7236/32.png) [@vuonghung12a2](https://www.ruby-forum.com/u/vuonghung12a2)\
**Post date:** [June 16, 2010, 12:39pm UTC](https://www.ruby-forum.com/t/how-to-get-data-from-dom-source-other-website/189998/3 "2010-06-16T12:39:49Z")

</div>

Amar D. wrote:

> Vuong H. wrote:
> 
> > Hi, everybody.
> > 
> > I am newbie RoR.
> > 
> > I want to get all data from DOM Source of website.
> > 
> > Can you guide me the way to use REXML? I have ready installed lib-xml  
> > library but I only use XML::Parser. I don’t understant it.
> > 
> > Thanks a lot and looking forward.
> 
> Use Hpricot to parse Html/xml page which is much more easy.  
> You can select particular data by finding unique css  
> There are various options are available.  
> Amar D.  
> [http://railstech.com](http://railstech.com)

Thanks Amar D.,  
I will try it.
