Sha256: 5cbeeb0e54ab56ab6caf2ef56cb164dfe2742f31cc3612f18846110413ecdc8b

Contents?: true

Size: 520 Bytes

Versions: 1

Compression:

Stored size: 520 Bytes

Contents

# PageByPage

Scrape page by page, according to url pattern, return an array of Nokogiri::XML::Element you want.

## Installation

Add this line to your application's Gemfile:

```ruby
gem 'page_by_page'
```

And then execute:

    $ bundle

Or install it yourself as:

    $ gem install page_by_page

## Usage

```ruby
nodes = PageByPage.fetch do
  url 'https://book.douban.com/subject/25846075/comments/hot?p=<%= n %>'
  selector '.comment-item'
  # from 2
  # step 2
  # to 100
  # threads 4
  # no_progress
end
```

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
page_by_page-0.1.8 README.md