package mona;
import tool.*;
import java.util.Calendar;
public class pro {
int s,datanumber;
String[] data=new String[5000];
String[] date=new String[5000];
String[] link=new String[5000];
String[] subdata=new String[50000];
int y1,m1,d1,w1;
int y2,m2,d2;
int number;
public static void main(String[] args) {
pro te=new pro();
}
pro(){
readfile sub2=new readfile();
sub2.makedata("date.csv","UTF-8");
data=sub2.data;
datanumber=sub2.datanumber;
int sx=0;
for(s=1;s<datanumber+1;s++){
if(data[s].indexOf("曜日")>-1)sx=sx+1;
String[] x=data[s].split(",");
if(data[s].indexOf("曜日")>-1)date[sx]=x[1]+"年"+x[2]+"月"+x[3]+"日";
if(data[s].indexOf("曜日")>-1)link[sx]=x[0];
}
number=sx;
System.out.println(number);
int tr=200;
int n=0;
for(tr=1;tr<789;tr++){
readfile sub=new readfile();
sub.makedata("tv/"+link[tr]+".txt","UTF-8");
data=sub.data;
datanumber=sub.datanumber;
int s1=0;
for(s=1;s<datanumber+1;s++){
data[s]=data[s].replace(" ","△");
data[s]=data[s].replace("<BR>","");
if(data[s].indexOf("<div")>-1)data[s]="";
if(data[s].indexOf("http")>-1)data[s]="";
n=n+1;
subdata[n]=date[tr]+"△"+data[s];
}
}
writefile sub3=new writefile();
sub3.data=subdata;
sub3.datanumber=n;
sub3.makedata("a1.txt");
}
}
最終更新:2016年07月27日 12:11