Class: DomainTools
- Inherits:
-
Object
- Object
- DomainTools
- Defined in:
- lib/domain-finder/domaintools.rb
Overview
Simple class for parsing a DomainTools page
Class Method Summary collapse
Class Method Details
.auction_domains(html) ⇒ Object
4 5 6 |
# File 'lib/domain-finder/domaintools.rb', line 4 def self.auction_domains html ( Hpricot(html) / 'div.ajax.12 tr td a' ).map { |a| a.inner_text.strip }.select { |txt| not txt.empty? } end |