Sha256: 649decdd49b69dc36ff63db52f02090b7900592a87b1e3330f39bf19f09da239

Contents?: true

Size: 457 Bytes

Versions: 8

Compression:

Stored size: 457 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'
end
```

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
page_by_page-0.1.7 README.md
page_by_page-0.1.6 README.md
page_by_page-0.1.5 README.md
page_by_page-0.1.4 README.md
page_by_page-0.1.3 README.md
page_by_page-0.1.2 README.md
page_by_page-0.1.1 README.md
page_by_page-0.1.0 README.md