import java.io.*;
class pro{
int xmlnumber;
String urlx,file;
String data;
int page,s;
public static void main(String [] args) {
pro test=new pro();
}
pro(){
for(page=1;page<100;page++){
urlx="http://m.logsoku.com/search.jsp?query=%E9%8A%80%E9%AD%82&page=";
urlx=urlx+page;
urlx=urlx+"&server=&category=";
getdata g=new getdata();
g.makedata(urlx);
data=g.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月06日 04:59