アットウィキロゴ

dkx

package movie;
 
import tool.*;
 
public class pro {
 
    int s,datanumber;
    String[] data=new String[5000];
  String[] link=new String[5000];
 
  int number;
    public static void main(String[] args) {
        pro t=new pro();
    }
 
    pro(){
 
 
 
        int tr;
 
 
     for(tr=17096;tr<17097;tr++){  
        int trs=17097-tr;
 
        dl sub3=new dl();
        sub3.makedata(trs);
    }
 
 
 
 
 
 
 
 
 
    }
 
}
 
 
 
 
package movie;
 
import tool.*;
 
public class dl {
 
    int s,datanumber;
    String[] data=new String[5000];
  String[] subdata=new String[5000];
 
 
 
    void makedata(int mx){
 
       String uu="http://mimorin2014.blog.fc2.com/blog-entry-"+mx+".html";
 
 
     getdata sub=new getdata();
        sub.makedata(uu,"UTF-8");
        data=sub.data;
        datanumber=sub.datanumber;
 
 
        System.out.println(datanumber);
 
        int s1=1;
        for(s=1;s<datanumber+1;s++){
     String pp="e"+mx;
            if(data[s].indexOf(pp)>-1)s1=s;    
        }
 
 
          int s2=s1;
         for(s=s1+1;s<datanumber+1;s++){
          int h=0;  
           if(data[s].indexOf("</div>")>-1)h=h+1;
          if(s2==s1)h=h+1;
          if(h==2)s2=s;       
 
         }
     String str=""; 
           for(s=s1;s<s2+1;s++){
         str=str+data[s];
 
           }
 
 
 
        String[] x=str.split("<br />");           
 
        int sx=0;
        for(s=0;s<x.length;s++){
          sx=sx+1;
          subdata[sx]=x[s];
        }
 
  writefile sub2=new writefile();
  sub2.data=subdata;
  sub2.datanumber=sx; 
  sub2.makedata("data/"+mx+".txt");
 
 
 
 
 
 
 
 
 
 
    }
 
}
 
最終更新:2017年05月07日 15:44