使用jsoup从url中提取值

时间:2014-11-26 12:54:18

标签: jsoup

我要做的是从html标签中提取值ul,li,跨越以下网址: http://www.huffingtonpost.com/2014/11/23/israel-new-laws_n_6207042.html#comments 从URl我想得到评论数量 股票数量

示例:

<ul class="shares group">
<li class="share facebook_like VERB_LIKE" data-type="f blike">
<a href="http://www.huffingtonpost.com/2014/11/23/israel-new-laws_n_6207042.html" data- send="false" data-layout="box_coun</span></div>  </a></li><li class="share facebook" data-type="facebook">

 <a class="social-fb-share-btn"data-title="Israel Mulls Hard-Line Legislation After    Attacks">
  <span class="facebook-share-btn label">Share</span>
  <span class="facebook-share-count count" data-count="283">283</span>
</a>    
</li> 
   <li class="share twitter" data-type="twitter">
<div class="social-twitter-btn" data-size="71" data-account="theworldpost">
<a class="twitter-tweet-btn" href="https://twitter.com/intent/tweet?  lang=en&amp;text=Israel+Mulls+Hard-  Line+Legislation+After+Attacks+http%3A%2F%2Fhuff.to%2F1rdclw6" sl-processed="1">
  <span class="twitter-tweet-btn label">Tweet</span>
   <span class="twitter-tweet-count count" data-count="103">103</span>
</a>
</div>

  

0 个答案:

没有答案