import java.io.*;
class pro{
String urlx,data,file;
int page,d;
public static void main(String [] args) {
pro test=new pro();
}
pro(){
for(page=1;page<5876;page++){
urlx="http://cinema.pia.co.jp/imp/?page=";
urlx=urlx+page;
getdata gt=new getdata();
gt.makedata(urlx);
data=gt.data;
file="data/";
file=file+page;
file=file+".txt";
writefile(file);
}
}
void writefile(String file){
try{
PrintWriter pw = new PrintWriter
(new BufferedWriter(new FileWriter(file)));
pw.println(data);
System.out.println("ファイルに書きこみました。");
pw.close();
}
catch(IOException ep){ System.out.println("入出力エラーです。"); }
}
}
最終更新:2011年07月08日 11:25