Class: Ubi::Consultor::Yahoo

Inherits:
Base
  • Object
show all
Defined in:
lib/ubi/consultores/yahoo.rb

Overview

URL finder consultor

Constant Summary

Constants inherited from Base

Base::HEADERS

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

.urlObject



20
21
22
# File 'lib/ubi/consultores/yahoo.rb', line 20

def url
  'https://search.yahoo.com/yhs/search?'
end

Instance Method Details



11
12
13
# File 'lib/ubi/consultores/yahoo.rb', line 11

def links
  '//a[not (contains(@href,"yahoo"))]'
end

#queryObject

query



7
8
9
# File 'lib/ubi/consultores/yahoo.rb', line 7

def query
  { p: @thema.name, hspart: 'ubi' }
end

#wordsObject



15
16
17
# File 'lib/ubi/consultores/yahoo.rb', line 15

def words
  '//li[@class="g"]'
end