アットウィキロゴ

dlkc

package music2;
 
import tool.*; 
 
public class pro {
 
    int s,datanumber;
String[] data=new String[40000];
String[] link=new String[40000];
  String[] name=new String[40000];
String[] music=new String[40000];
 
    public static void main(String[] args) {
       pro t=new pro();
    }
    pro(){
 
        int tr=1238;
        int sx=0;
        for(tr=1;tr<11;tr++){
 
            getdata sub2=new getdata();
        sub2.makedata("http://lain.gr.jp/voicedb/profile/list/cid/"+tr,"UTF-8");
        data=sub2.data;
        datanumber=sub2.datanumber;
 
        String date="";
 
        String str="";
        for(s=1;s<datanumber;s++){
      str=str+data[s];
        }
 
        String[] x=str.split("</li>");
 
         for(s=1;s<x.length;s++){
 
        int p1=x[s].indexOf("/profile/");
         int p2=x[s].indexOf("\"",p1);
         String n=""; 
         if(p1>-1)n=x[s].substring(p1,p2);
         if(x[s].indexOf("更新日")>-1)sx=sx+1;
           if(x[s].indexOf("更新日")>-1)music[sx]=n;
         }
 
 
 
        }
 
        int number=sx;
 
         for(tr=1;tr<number+1;tr++){
 
 
             getdata sub3=new getdata();
        sub3.makedata("http://lain.gr.jp/voicedb"+music[tr],"UTF-8");
        data=sub3.data;
        datanumber=sub3.datanumber;
 
      System.out.println(music[tr]);
 
      music[tr]=music[tr].substring(1,music[tr].length());
 
       writefile sub5=new writefile();
        sub5.data=data;
        sub5.datanumber=datanumber;
       sub5.makedata(music[tr]+".txt");
 
 
 
 
         }    
 
 
 
    }
    String change(String str){
 
        int n;
        for(n=1;n<11;n++){
        str=rev(str);    
        }
 
        str=str.replace(" ","");
 
        return str;
    }
 
 String rev(String str){
 
        if(str==null)str="";
 
        int p1=str.indexOf("<");
        int p2=str.indexOf(">",p1);
        String strx="";
        if(p2>-1)strx=str.substring(p1,p2+1);
        str=str.replace(strx,"");
 
        return str;
    }    
 
 
}
 
最終更新:2016年09月09日 07:39