Class: Ubi::Consultor::Yahoo
Overview
URL finder consultor
Constant Summary
Constants inherited from Base
Class Method Summary collapse
Instance Method Summary collapse
Methods inherited from Base
#datum, inherited, #initialize, name, #parser, #query_url, #request
Constructor Details
This class inherits a constructor from Ubi::Consultor::Base
Class Method Details
.url ⇒ Object
20 21 22 |
# File 'lib/ubi/consultores/yahoo.rb', line 20 def url 'https://search.yahoo.com/yhs/search?' end |
Instance Method Details
#links ⇒ Object
11 12 13 |
# File 'lib/ubi/consultores/yahoo.rb', line 11 def links '//a[not (contains(@href,"yahoo"))]' end |
#query ⇒ Object
query
7 8 9 |
# File 'lib/ubi/consultores/yahoo.rb', line 7 def query { p: @thema.name, hspart: 'ubi' } end |
#words ⇒ Object
15 16 17 |
# File 'lib/ubi/consultores/yahoo.rb', line 15 def words '//li[@class="g"]' end |