Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
29 lines (17 sloc) 678 Bytes
Ruby Readability
Command line:
(sudo) gem install ruby-readability
gem "ruby-readability", :require => 'readability'
require 'rubygems'
require 'readability'
require 'open-uri'
source = open('').read
This code is under the Apache License 2.0.
This is a ruby port of arc90's readability project
Given a html document, it pulls out the main body text and cleans it up.
Ruby port by starrhorne, libc, and iterationlabs. Original gemification by fizx.