Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
ExtractContent for Ruby 1.9+
Ruby
branch: master
Failed to load latest commit information.
lib Added DOM separator when output extracted content.
.gitignore Initial commit
README.markdown Update README
extractcontent.gemspec Initial commit

README.markdown

ExtractContent

ExtractContent for Ruby 1.9+

Installation

Edit Gemfile.

$ vi Gemfile

Add a following line to Gemfile.

gem 'extractcontent', github: 'mono0x/extractcontent'

Install the gem.

$ bundle install

Usage

require 'bundler/setup'
require 'extractcontent'

html = ...
content, title = ExtractContent.analyse(html)

puts title
puts content

License

The BSD License

The original code was written by Nakatani Shuyo.

Something went wrong with that request. Please try again.