mercredi 25 novembre 2020

IS there any method to get html value in Jsoup

I want to scrap Id value using Jsoup, please refer img URL. am getting more html tags than values Here is my HTML data parsing

<lineargradient gradientunits class="rating-stars__item">
 <svg viewbox="0 0 40 37" xmlns="http://www.w3.org/2000/svg">
  <defs>
   <lineargradient gradientunits="userSpaceOnUse" id="1">
    <stop stop-color="#ffa900" stop-opacity="1" offset="1"></stop>
    <stop stop-color="#d2d2d2" stop-opacity="1" offset="100%"></stop>
   </lineargradient>

Here my code line:

Elements reviewRating=review.select("div.comment__rating > rz-rating-stars#47701494.comment__rating-stars > ul.rating-stars > li.rating-stars__item");
            
String  reviewRating3=reviewRating.select("defs > lineargradient").;

enter image description here




Aucun commentaire:

Enregistrer un commentaire