<ul class="">
<li class="avatar_img"><img src="http://avatar.csdn.net/F/8/0/3_horserunningnostop.jpg" alt="HorseRunningNoStop" title="HorseRunningNoStop"/></li>
<li class="user_name">HorseRunningNoStop</li>
<li class="time">2016年03月16日 20:12</li>
<li class="visited_num"><i class="icon iconfont icon-read"></i><span>418</span></li>
</ul>
获取这个页面上的 class="icon iconfont icon-read"
String url="请求的url连接";
Document document = null;
// URL uri = new URL(url);
document = Jsoup.connect(url).data("query", "Java")//请求参数
.userAgent("Mozilla/4.0 (compatible; MSIE 9.0; Windows NT 6.1; Trident/5.0)")//设置urer-agent get();
.timeout(10000)
.get();
// icon iconfont icon-read 获取你需要获取的页面class 有几个空格写几个select (切记要加".点)
Elements select = document.select(".icon").select(".iconfont").select(".icon-read");
//Elements elementsByClass = document.getElementsByClass("recommend_list").select("clearfix");
System.out.println(select);