LINK
package people;
import tool.*;
public class pro {
String urlx,str1,str2,str3;
int s,datanumber,articlenumber;
String data=new String[5000];
String article=new String[5000];
int s1,s2,h,sx;
public static void main(String[] args) {
pro test=new pro();
}
pro(){
urlx="http://www.oricon.co.jp/search/result.php?types=art&search_string=%82%B3%82%BE%82%DC%82%B3%82%B5&select_condition=3";
getdata sub=new getdata();
sub.makedata(urlx,"SJIS");
data=sub.data;
datanumber=sub.datanumber;
str1="に一致する検索結果";
str2="";
s1=0;
for(s=1;s<datanumber+1;s++){
if(data[s].indexOf(str1)>-1)s1=s;
}
s2=0;
for(s=1;s<datanumber+1;s++){
h=0;
if(data[s].indexOf(str2)>-1)h=h+1;
if(s2==0)h=h+1;
if(h==2)s2=s;
}
str3="prof/artist/";
sx=0;
for(s=s1;s<s2;s++){
if(data[s].indexOf(str3)>-1)sx=sx+1;
if(data[s].indexOf(str3)>-1)article[sx]=data[s];
}
articlenumber=sx;
for(s=1;s<articlenumber+1;s++){
System.out.println(article[s]);
}
}
}