Method: LinkOracle::Extractor::Base#get_content
- Defined in:
- lib/link_oracle/extractor/base.rb
#get_content(selector) ⇒ Object
24 25 26 27 |
# File 'lib/link_oracle/extractor/base.rb', line 24 def get_content(selector) found = parsed_body.xpath(selector).first (found && !found[:content].empty?) ? [found[:content]] : [] end |