Here is the code that goes in tJavaRow component that extracts only ratings out of the whole page and returns a string of ratings separated by semicolon.
/* -- Code from https://www.youtube.com/channel/UCT3bqK2QL93j-IFYFYbvjWQ ---- */
String wholepage;
String ratings;
wholepage=input_row.document.toString();
int pos=wholepage.indexOf("composite_val");
ratings=wholepage.substring(pos,pos+250).replaceAll("[\\[\\]\"]", "").replaceAll(" \n", " ").replaceAll(" composite_val_vgm","");
//output_row.document = ratings;
String allratingsonly="";
String[] splitratings = ratings.split("composite_val>");
for (String eachratingrow : splitratings)
{
if (eachratingrow.length()>0)
{ allratingsonly=allratingsonly+";"+ eachratingrow.charAt(0)+""; //allratingsonly=allratingsonly+eachratingrow+"**;";
}
}
output_row.document=allratingsonly;
/* - End of Code from https://www.youtube.com/channel/UCT3bqK2QL93j-IFYFYbvjWQ --*/
/* - End of Code from https://www.youtube.com/channel/UCT3bqK2QL93j-IFYFYbvjWQ --*/