package cyzo;
import tool.*;
public class pro {
int s,datanumber;
String[] data=new String[3600];
String[] link=new String[3600];
public static void main(String[] args){
pro t=new pro();
}
pro(){
int y1,m1;
for(y1=2016;y1<2017;y1++){
for(m1=1;m1<8;m1++){
String m2="0"+m1;
if(m1>9)m2=""+m1;
String urlx="http://www.cyzo.com/"+y1+"/"+m2+"/";
getdata sub=new getdata();
sub.makedata(urlx,"UTF-8");
data=sub.data;
datanumber=sub.datanumber;
int sx=0;
String str="";
for(s=1;s<datanumber+1;s++){
str=str+data[s];
}
String ff="<!--/-->";
sx=0;
String[] x=str.split(ff);
for(s=0;s<x.length-1;s++){
sx=sx+1;
link[sx]=x[s];
}
String xx="\"tag\">";
int tx;
for(s=1;s<sx+1;s++){
String[] x1=link[s].split(xx);
for(tx=1;tx<x1.length;tx++){
int p1=x1[tx].indexOf("</a");
if(p1>-1)x1[tx]=x1[tx].substring(0,p1);
System.out.println(y1+","+m1+","+x1[tx]);
}
}
}
}
}
}
最終更新:2016年08月18日 15:47