⚲
Project
General
Profile
Sign in
Register
Home
Projects
Help
Search
:
Ruby master
All Projects
Ruby
»
Ruby master
Overview
Activity
Roadmap
Issues
Repository
Like
Download (183 Bytes)
Bug #3220
» content.rb
script for segv -
tenderlovemaking (Aaron Patterson)
, 04/29/2010 03:06 PM
require
'nokogiri'
require
'open-uri'
doc
=
Nokogiri
.
HTML
(
open
(
'http://example.com'
))
doc
.
xpath
(
'//text()'
).
sort_by
{
|
node
|
node
.
text
.
length
}.
each
do
|
n
|
puts
n
.
text
.
length
end
« Previous
1
2
Next »
(1-1/2)
Loading...