Skip to content

Commit

Permalink
[#7] Implement ads_page_count
Browse files Browse the repository at this point in the history
  • Loading branch information
malparty committed Jun 15, 2021
1 parent cf356fb commit bc141b7
Show file tree
Hide file tree
Showing 3 changed files with 369 additions and 4 deletions.
4 changes: 2 additions & 2 deletions app/services/google_service/parser_service.rb
Expand Up @@ -20,11 +20,11 @@ def parse_into(keyword)
end

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

def ads_page_count

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

def ads_top_url
Expand Down

0 comments on commit bc141b7

Please sign in to comment.