Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 4910601509
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

executable file 14 lines (11 sloc) 0.282 kb
1 2 3 4 5 6 7 8 9 10 11 12 13
#!/usr/bin/env ruby
$KCODE='u'
require 'rubygems'
require 'open-uri'
require File.dirname(__FILE__) + '/../lib/readability'

if ARGV.length != 1
  STDERR.puts "Usage: #{File.basename($0)} URL"
  exit 1
end

text = open(ARGV.first).read
puts Readability::Document.new(text).content
Something went wrong with that request. Please try again.