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

 - -还不会。。。先写个简单的

 

相关文章:

  • 2022-12-23
  • 2021-08-28
  • 2021-12-15
  • 2021-11-18
  • 2021-12-15
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-22
  • 2022-12-23
  • 2021-04-02
相关资源
相似解决方案