Sha256: e5d3aafa985ce5a109e8354eb0808d282a8e29187afae4eeaafafec93f650cf7

Contents?: true

Size: 332 Bytes

Versions: 73

Compression:

Stored size: 332 Bytes

Contents

nokogiri = Nokogiri.HTML(content)

outputs << {
    _collection: "home",
    _id: "1234",
    text: nokogiri.text,
    heading: nokogiri.at('h1').text,
    response_headers: page['response_headers'],
}

pages << {
  url: "http://fetchtest.datahen.com/statuses/200?q=queuedFromParser",
  vars: {"abc":[1,2,3], "def": "defcontent"}
}

Version data entries

73 entries across 73 versions & 2 rubygems

Version Path
answersengine-0.9.1 examples/fetchtest/parsers/simple.rb
answersengine-0.9.0 examples/fetchtest/parsers/simple.rb
answersengine-0.8.0 examples/fetchtest/parsers/simple.rb
answersengine-0.7.0 examples/fetchtest/parsers/simple.rb
answersengine-0.6.0 examples/fetchtest/parsers/simple.rb
answersengine-0.5.0 examples/fetchtest/parsers/simple.rb
answersengine-0.4.1 examples/fetchtest/parsers/simple.rb
answersengine-0.4.0 examples/fetchtest/parsers/simple.rb
answersengine-0.3.3 examples/fetchtest/parsers/simple.rb
answersengine-0.3.2 examples/fetchtest/parsers/simple.rb
answersengine-0.3.1 examples/fetchtest/parsers/simple.rb
answersengine-0.3.0 examples/fetchtest/parsers/simple.rb
answersengine-0.2.33 examples/fetchtest/parsers/simple.rb