Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

ExtractContent for Ruby 1.9

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 lib
Octocat-spinner-32 .gitignore
Octocat-spinner-32 README.markdown
Octocat-spinner-32 extractcontent.gemspec
README.markdown

ExtractContent

ExtractContent for Ruby 1.9

Installation

Install bundler.

gem install bundler
bundle init
vi Gemfile

Add the following line to Gemfile.

gem 'extractcontent', :git => 'https://github.com/mono0x/extractcontent.git'

Install the gem.

bundle install

Usage

# coding: utf-8

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.