2013-02-19 92 views

回答

0

如果圖片是用src -attribute a標籤鏈接(而正常鏈路使用href)使用此:

Document doc = Jsoup.connect(url).timeout(1000).get(); 
Elements links = doc.select("a[href]"); // Only select 'a'-tags with 'href' attribute 

爲jsoup選擇API見here