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
- -还不会。。。先写个简单的
Powered by: 博客园 Copyright © 2024 1957 Powered by .NET 9.0 on Kubernetes