Skip to content

Commit

Permalink
[#7] Implement ads_top_count
Browse files Browse the repository at this point in the history
  • Loading branch information
malparty committed Jun 15, 2021
1 parent 5cc6a1b commit cf356fb
Show file tree
Hide file tree
Showing 4 changed files with 3,451 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/services/google_service/parser_service.rb
@@ -1,7 +1,7 @@
# frozen_string_literal: true

module GoogleService
module ParserService
class ParserService
require 'nokogiri'

def initialize(html)
Expand All @@ -20,7 +20,7 @@ def parse_into(keyword)
end

def ads_top_count

@document.css('div[data-text-ad]').count
end

def ads_page_count
Expand Down

0 comments on commit cf356fb

Please sign in to comment.