forked from cantino/ruby-readability
-
Notifications
You must be signed in to change notification settings - Fork 0
sammcd/ruby-readability
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Ruby Readability Command line: (sudo) gem install ruby-readability Bundler: gem "ruby-readability", :require => 'readability' Example: require 'rubygems' require 'readability' require 'open-uri' source = open('http://lab.arc90.com/experiments/readability/').read puts Readability::Document.new(source).content There is also a command-line tool for testing readability in bin/readability. Usage: readability [options] URL -d, --debug Show debug output -i, --images Keep images and links -h, --help Show this message === This code is under the Apache License 2.0. http://www.apache.org/licenses/LICENSE-2.0 This is a ruby port of arc90's readability project http://lab.arc90.com/experiments/readability/ 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.
About
Port of arc90's readability project to ruby
Resources
Stars
Watchers
Forks
Packages 0
No packages published
Languages
- Ruby 100.0%