Class: Retriever::FetchSEO

Inherits:
Fetch
  • Object
show all
Defined in:
lib/retriever/fetchseo.rb

Constant Summary

Constants inherited from Fetch

Retriever::Fetch::HR

Instance Attribute Summary

Attributes inherited from Fetch

#max_pages, #result, #t

Instance Method Summary collapse

Methods inherited from Fetch

#dump, #errlog, #filter_out_querystrings, #good_response?, #lg, #start, #write

Constructor Details

#initialize(url, options) ⇒ FetchSEO

receives target url and RR options returns an array of onpage SEO related fields

on all unique pages found on the site


7
8
9
10
11
12
13
14
15
16
# File 'lib/retriever/fetchseo.rb', line 7

def initialize(url, options)
  super
  start
  @result.push(@page_one.parse_seo)

  async_crawl_and_collect
  # done, make sure progress bar says we are done
  @progressbar.finish if @progress
  @result.sort_by! { |x| x[0].length }
end