清华大佬耗费三个月吐血整理的几百G的资源,免费分享!....>>>
//jsoup_1.7.2, groovy_2.3.7 import org.jsoup.Jsoup import org.jsoup.nodes.Document import org.jsoup.select.Elements String html = "<html><body><IMG src='http://adfadf' /></body></html>" Document doc = Jsoup.parse(html) Elements elements=doc.select("img") //for (int i = 0; i < postElements.size(); i++) { elements.each{ println(it.attr("src")); } /*output: http://adfadf */