Class: Sc::BaseUriSelector

Inherits:
Selector show all
Defined in:
lib/scrappy/extractor/selectors/base_uri.rb

Instance Method Summary collapse

Methods inherited from Selector

#select

Methods included from Scrappy::Formats

#format

Instance Method Details

#filter(doc) ⇒ Object



3
4
5
# File 'lib/scrappy/extractor/selectors/base_uri.rb', line 3

def filter doc
  [ { :uri=>doc[:uri], :content=>doc[:content], :value=>doc[:uri] } ]
end