摘要:
require 'open-uri'url = "http://cstest.scu.edu.cn"open(url) do |page| page_content = page.read() links = page_content.scan(/<a href=\"(.*?)\"/).flatten links.each {|link| puts url+'/'+link}end - -还不会。。。先写个简单的 阅读全文
posted @ 2012-11-27 19:30 1957 阅读(806) 评论(0) 推荐(0) 编辑