Sha256: eb855ccde1787e76feb793c98ec06a246524c9e1497beaf7414a771fdb1a6503

Contents?: true

Size: 394 Bytes

Versions: 4

Compression:

Stored size: 394 Bytes

Contents

module Ubi
  module Consultor
    # URL finder consultor
    class Google < Base # HTML
      def query
        { q: @thema.name }
      end

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

      def words
        '//div[@class="res"]'
      end

      class << self
        def url
          'https://www.google.com.br/search?'
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
ubi-0.0.8 lib/ubi/consultores/google.rb
ubi-0.0.7 lib/ubi/consultores/google.rb
ubi-0.0.5 lib/ubi/consultores/google.rb
ubi-0.0.3 lib/ubi/consultores/google.rb