Ruby 抓取 URL 的内容

require 'open-uri'
puts open('http://www.oschina.net/').read(200)

编程技巧