# Hpricot Parser

**URL:** <https://www.ruby-forum.com/t/hpricot-parser/183964>\
**Category:** Rails\
**Created:** [February 23, 2010, 7:33am UTC](https://www.ruby-forum.com/t/hpricot-parser/183964 "2010-02-23T07:33:28Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![newb](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/2acd7d/32.png) [@newb](https://www.ruby-forum.com/u/newb)\
**Post date:** [February 23, 2010, 7:33am UTC](https://www.ruby-forum.com/t/hpricot-parser/183964/1 "2010-02-23T07:33:28Z")

</div>

Dear Friends,

In my html page i have image tags like below.  
 ![]()  
 ![]()  
 ![]()

Using the hpricot parser like below i can able to get all the image tag  
and its attributes.  
\<%@a = File.read("#{@file\_path}")%\>  
\<%@html = Hpricot.parse("#{@a}")%\>  
\<removed\_email\_address@domain.invalid("//img").each do |element|%\>  
\<%end%\>

but now i want to get all the images which has “family” as a image  
path.so i want to fetch only the below images  
 ![]()  
 ![]()

Is it possible to do so…  
Thanks for your time  
kindly support me.  
Thanks in advance
