Permalink
Switch branches/tags
Commits on Aug 29, 2010
  1. v1.1.0

    mislav committed Aug 29, 2010
  2. implement Nibbler#to_hash

    mislav committed Aug 29, 2010
Commits on Aug 15, 2010
  1. release 1.0

    mislav committed Aug 15, 2010
  2. tweak example scripts

    mislav committed Aug 15, 2010
  3. renamed "Scraper" → "Nibbler"

    mislav committed Aug 15, 2010
Commits on Dec 10, 2009
  1. parse documents with Nokogiri() instead of Nokogiri::HTML()

    mislav committed Dec 10, 2009
    we don't know what the document might be, so don't make assumptions.
    if you want to enforce a certain type, override `convert_document`
Commits on Nov 6, 2009
  1. MIT licensed

    mislav committed Nov 6, 2009
    closes #3
Commits on Oct 25, 2009
Commits on Oct 24, 2009
  1. allow `element(:name, :with => Klass)` rule declaration style

    mislav committed Oct 24, 2009
    it's a shorthand for `element('name' => :name, :with => Klass)`
  2. write README

    mislav committed Oct 24, 2009
  3. Tempfile, StringIO are also considered content and passed to Nokogiri

    mislav committed Oct 24, 2009
    Now it's possible to pass the result of open-uri request directly:
      MyScraper.parse(open('http://example.com'))
  4. block passed to rule declaration defines rules for delegate class

    mislav committed Oct 24, 2009
    Example:
      class BlogWithArticlesBlock < BlogScraper
        elements 'div.hentry' => :articles do
          element 'h1' => :title
        end
      end
Commits on Oct 23, 2009
  1. don't force Nokogiri; document object can be anything

    mislav committed Oct 23, 2009
    A document object that a Scraper is initialized with can be any
    object that responds to `at(selector)` and `search(selector)`,
    but if it's a string or IO (e.g. file), then Nokogiri is loaded.
Commits on Oct 22, 2009