# Hpricot files ------

**URL:** <https://www.ruby-forum.com/t/hpricot-files/187684>\
**Category:** Ruby\
**Created:** [April 27, 2010, 7:22pm UTC](https://www.ruby-forum.com/t/hpricot-files/187684 "2010-04-27T19:22:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![kevid](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/e480ec/32.png) [@kevid](https://www.ruby-forum.com/u/kevid)\
**Post date:** [April 27, 2010, 7:22pm UTC](https://www.ruby-forum.com/t/hpricot-files/187684/1 "2010-04-27T19:22:47Z")

</div>

Hi all,

I need to make use of “Hpricot gem”  
files. I don’t want to install it as a gem. I copied lib/hpricot/\*{all  
files} and lib/hpricot.rb to my application.

below is lib/hpricot.rb

begin  
require ‘encoding/character/utf-8’  
rescue LoadError  
end

#require ‘hpricot\_scan’  
require ‘hpricot/tag’  
require ‘hpricot/modules’  
require ‘hpricot/traverse’  
require ‘hpricot/inspect’  
require ‘hpricot/parse’  
require ‘hpricot/builder’

ALL files loaded properly except “hpricot\_scan”. i can’t find anything  
like hpricot\_scan.rb in the gem’s folder.

Any help is highly appreciated.

---

<div class="post-metadata">

**Author:** ![kevid](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/e480ec/32.png) [@kevid](https://www.ruby-forum.com/u/kevid)\
**Post date:** [April 27, 2010, 8:17pm UTC](https://www.ruby-forum.com/t/hpricot-files/187684/2 "2010-04-27T20:17:15Z")

</div>

On Apr 27, 2010, at 10:20, kevid wrote:

> rescue LoadError  
> ALL files loaded properly except “hpricot\_scan”. i can’t find anything  
> like hpricot\_scan.rb in the gem’s folder.
> 
> Any help is highly appreciated.

gem install hpricot

---

<div class="post-metadata">

**Author:** ![kevid](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/e480ec/32.png) [@kevid](https://www.ruby-forum.com/u/kevid)\
**Post date:** [April 27, 2010, 8:58pm UTC](https://www.ruby-forum.com/t/hpricot-files/187684/3 "2010-04-27T20:58:14Z")

</div>

Il 27/04/10 20.13, Eric H. ha scritto:

> > 
> 
> gem install hpricot

You miss the question… He didnt want to install as gem…

Kevid: look here [GitHub - whymirror/hpricot: A swift, liberal HTML parser with a fantastic library](http://github.com/whymirror/hpricot) and… here  
[hpricot/ext/hpricot\_scan at master · whymirror/hpricot · GitHub](http://github.com/whymirror/hpricot/tree/master/ext/hpricot_scan/)

Regards,

Francesco
