#-*-coding:ISO-8859-1-*-require'open-uri'require'uri'html=open('http://www.265.com/').read(2000000)END_CHARS=%{.,'?!:;}putsURI.extract(html,['http']).collect{|u|END_CHARS.index(u[-1])?u.chop:u}运行结果:http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional...
查看全文