アットウィキロゴ

dlxtert

package tetu;
 
import tool.*;
 
public class pro {
 
    int s,datanumber;
    String[] data=new String[50000];
 int[] a=new int[100];
 int[] b=new int[100];
 String[] subdata=new String[50000];
 
    public static void main(String[] args) {
       pro test=new pro();
    }
    pro(){
 
        int tr;
for(tr=1;tr<48;tr++){
String urlx="http://tetsukonohair.jugem.jp/?page="+tr+"&cid=6";
 
 
            getdata sub7=new getdata();
        sub7.makedata(urlx,"EUC-JP");
        data=sub7.data;
        datanumber=sub7.datanumber; 
 
        	String pp="<div class=\"entryBody\">";
 
                int sx=0;
        for(s=1;s<datanumber+1;s++){
 
       if(data[s].indexOf(pp)>-1)sx=sx+1;
       if(data[s].indexOf(pp)>-1)a[sx]=s;
 
        } 
 
        int number=sx;
 
 
 
         for(s=1;s<number+1;s++){
 for(sx=a[s]+1;sx<a[s]+10;sx++){
     if(data[sx].indexOf("http://www.tv-asahi.co.jp/tetsuko/")>-1)b[s]=sx; 
     if(data[sx].indexOf("http://twitter.com/share")>-1)b[s]=sx; 
 
 }
 } 
 
 
         int tx=0;
         for(s=1;s<number+1;s++){
 for(sx=a[s];sx<b[s];sx++){ 
    tx=tx+1;
    subdata[tx]=change(data[sx]);
 }
 }     
 
 
number=tx;
       for(s=1;s<number+1;s++){
int h=0;
if(subdata[s].indexOf("/")>-1)h=100;
if(subdata[s].indexOf("月")>-1)h=100;
if(subdata[s].indexOf("http://www.tv-asahi.co.jp/tetsuko/")>-1)h=0;
if(subdata[s].indexOf(".")>-1)h=0;
if(h>50)System.out.println(subdata[s]);
 }        
 
 
 
 
}
 
 
 
    }
 
  String change(String str){
 
        int n;
        for(n=1;n<11;n++){
        str=rev(str);    
        }
 
 
 
        return str;
    }
 
 String rev(String str){
 
        if(str==null)str="";
 
        int p1=str.indexOf("<");
        int p2=-1;
        if(p1>-1)p2=str.indexOf(">",p1);
        String strx="";
        if(p2>-1)strx=str.substring(p1,p2+1);
        str=str.replace(strx,"");
 
        return str;
    }      
 
}
 
最終更新:2016年08月31日 02:20