Class: ESearchy::OtherEngines::PGP
- Inherits:
-
GenericEngine
- Object
- GenericEngine
- ESearchy::OtherEngines::PGP
- Defined in:
- lib/esearchy/OtherEngines/pgp.rb
Constant Summary collapse
- ENGINE =
"pgp.mit.edu"- PORT =
11371- NUM =
Do not really ned it :)
0- TYPE =
1
Instance Attribute Summary
Attributes inherited from GenericEngine
#documents, #emails, #people, #results
Instance Method Summary collapse
Methods inherited from GenericEngine
#company=, #initialize, #maxhits=, #start=
Constructor Details
This class inherits a constructor from ESearchy::GenericEngine
Instance Method Details
#parse(html) ⇒ Object
17 18 19 |
# File 'lib/esearchy/OtherEngines/pgp.rb', line 17 def parse( html ) super html.scan(/href=["|']([0-9A-Za-z:\\\/?&=@+%.;"'()_-]+)["|']/) end |
#search ⇒ Object
9 10 11 12 13 14 15 |
# File 'lib/esearchy/OtherEngines/pgp.rb', line 9 def search @querypath = "/pks/lookup?search=" + @query get ENGINE, PORT, @querypath, {'User-Agent' => UserAgent::fetch } do |r| D "Searching #{self.class}" crawler(r.body) end end |