摘要: require 'net/http'require 'fileutils'require "open-uri"response_html = Net::HTTP.get('url', '/', 3000)response_html.scan(/<img.*?src=['"](.*?)['"].*?>/).each do |img| if img[0]=='' next end img[0].scan(/[\/](.*)[\/](.*)/) File 阅读全文
posted @ 2011-05-23 13:46 芬奇 阅读(253) 评论(1) 推荐(0) 编辑