Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

mono0x/extractcontent

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

ExtractContent for Ruby 1.9+

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages