class rate{
String[][] article=new String[200][200];
String[][] point=new String[200][200];
String[][] rate=new String[200][200];
int[] pagenumber=new int[200];
int[] ratenumber=new int[200];
int page,s,sx,articlenumber;
String str;
int h,p1,p2,pointnumber;
int tx;
void makedata(String urlx){
article sub1=new article();
sub1.makedata(urlx);
article=sub1.article;
pagenumber=sub1.pagenumber;
articlenumber=sub1.articlenumber;
for(page=1;page<articlenumber+1;page++){
sx=0;
for(s=4;s<pagenumber[page];s++){
str=article[page][s];
h=0;
if(str.indexOf("</TD>")>0)h=h+1;
if(str.indexOf(".")>0)h=h+1;
if(h==2)sx=sx+1;
if(h==2)point[page][sx]=article[page][s];
}
pointnumber=sx;
for(s=1;s<pointnumber+1;s++){
str=point[page][s];
str=str.replace("*","");
p1=str.indexOf(">");
p2=str.indexOf("</TD>",p1);
str=str.substring(p1+1,p2);
str=str.replace("<br>","/");
point[page][s]=str;
}
sx=0;
for(s=1;s<pointnumber+1;s++){
str=point[page][s];
if(str.indexOf("/")<1)sx=sx+1;
if(str.indexOf("/")<1)rate[page][sx]=point[page][s];
String[] x=str.split("/");
for(tx=0;tx<x.length;tx++){
if(str.indexOf("/")>0)sx=sx+1;
if(str.indexOf("/")>0)rate[page][sx]=x[tx];
}
}
ratenumber[page]=sx;
}
}
}
最終更新:2011年07月25日 16:54