Abstract
The hpricot gem provides a fast Ruby HTML parser; it’s partially implemented in C to increase performance. hpricot has two big advantages: it’s easy to use and it’s fast. It combines an elegant interface with the ability to search by CSS selectors, element IDs, tag types, and so forth. At the same time, it’s also high-performance, so you can process even fairly large HTML documents quickly.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Preview
Unable to display preview. Download preview PDF.
Rights and permissions
Copyright information
© 2007 David Berube
About this chapter
Cite this chapter
(2007). Parsing HTML with hpricot. In: Practical Ruby Gems. Apress. https://doi.org/10.1007/978-1-4302-0193-9_13
Download citation
DOI: https://doi.org/10.1007/978-1-4302-0193-9_13
Publisher Name: Apress
Print ISBN: 978-1-59059-811-5
Online ISBN: 978-1-4302-0193-9
eBook Packages: Professional and Applied ComputingProfessional and Applied Computing (R0)Apress Access Books