看糗百简单ruby版

清华大佬耗费三个月吐血整理的几百G的资源,免费分享!....>>>

#encoding: utf-8
require 'open-uri'
require 'nokogiri'

doc = Nokogiri::HTML(open('http://www.qiushibaike.com/8hr'))
doc.css('.content[title]').each{|qiushi|  puts qiushi.inner_html}