アットウィキロゴ

de009

package pic;
 
import tool.*; 
import java.io.File;
 
public class pro {
 
    int s,datanumber;
String[] data=new String[40000];
String[] link=new String[40000];
  String[] name=new String[40000];
String[] music=new String[40000];
 String[] code=new String[5000];
String[] year=new String[5000];
 String[] r=new String[5000];
 
 String[] imx=new String[60];
 
 public static void main(String[] args) {
       pro t=new pro();
    }
    pro(){
 
 
        search_all sub=new search_all();
        sub.makedata("1exYc2fNRAq1S0wZXHBUms_ZWXzXY0UR7dWmin3UR");
        name=sub.name;
        code=sub.code;
 
 
 for(s=1;s<11;s++){
       pic sub2=new pic();
        String c=sub2.makedata(code[s]);
        System.out.println(name[s]+","+c);
 
 
        imx[s]="<img src=\""+c+"\">";
     System.out.println(imx[s]);
 }       
 
 
 System.out.println("<table>");
 for(s=1;s<11;s++){
 System.out.print("<tr>");
 System.out.print("<td>");
 System.out.print(s);
 System.out.print("</td>");
 System.out.print("<td>");
  System.out.print(name[s]);
  System.out.print("</td>");
  System.out.print("<td>");
  System.out.print(imx[s]);
  System.out.print("</td>");
  System.out.println("</tr>");
 }       
 System.out.println("</table>");
 
 
 
 
 
    }}
 
 
 
 
 
package pic;
 
 
import tool.*; 
import java.io.File;
 
public class pic {
 
    int s,datanumber;
String[] data=new String[40000];
String[] link=new String[40000];
  String[] name=new String[40000];
String[] music=new String[40000];
 
 
    String makedata(String code){
 
 
        String urlx="http://www.oricon.co.jp/prof/"+code+"/";
 
       getdata sub2=new getdata();
        sub2.makedata(urlx,"SJIS");
        data=sub2.data;
        datanumber=sub2.datanumber;
 
        String date="artist-introduction-pic";
 
        String str="";
        int s1=1;
        for(s=1;s<datanumber;s++){
 
     if(data[s].indexOf(date)>-1)str=data[s];
 
        }
 
 
 
 int p1=str.indexOf("http://contents.oricon.co");
 int p2=-1;
 if(p1>-1)p2=str.indexOf("\"",p1);
 if(p1>-1)str=str.substring(p1,p2);
 
      return str;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
    }
    String change(String str){
 
        int n;
        for(n=1;n<11;n++){
        str=rev(str);    
        }
 
        str=str.replace(" ","");
 
        return str;
    }
 
 String rev(String str){
 
        if(str==null)str="";
 
        int p1=str.indexOf("<");
        int p2=str.indexOf(">",p1);
        String strx="";
        if(p2>-1)strx=str.substring(p1,p2+1);
        str=str.replace(strx,"");
 
        return str;
    }    
 
 
}
 
 
 
 
package pic;
 
import tool.*;
 
 
public class search_all {
 
  int s,datanumber;
String[] data=new String[5000];
 String[] code=new String[5000];
 String[][] namex=new String[50][50];
String[] name=new String[5000];
String[] year=new String[5000];
 String[] r=new String[5000];
 
void makedata(String id){
 
    	 String str1="%20";
 
 
       String urlx="https://www.googleapis.com/fusiontables/v1/query?sql=SELECT";
       urlx=urlx+str1+"*"+str1+"FROM"+str1+id;
       urlx=urlx+"&key=AIzaSyAH0WCAXRIdHdbI-6bnMSN4kVDDZZmGyqY";
 
        getdata sub=new getdata();
   sub.makedata(urlx,"UTF-8");
   data=sub.data;
   datanumber=sub.datanumber;
 
 String str="";
   for(s=1;s<datanumber+1;s++){
   str=str+data[s];
 
   }
 
 
   int p1=str.indexOf("rows");
   p1=str.indexOf(":",p1);
   str=str.substring(p1,str.length());
 
 
 int sx;
 int tx=0;
   String[] x=str.split("],");
 for(s=0;s<x.length;s++){  
 String[] y=x[s].split(",");
 for(sx=0;sx<y.length;sx++){
 if(sx==0)year[s+1]=cg(y[sx]);
 if(sx==1)r[s+1]=cg(y[sx]);
 if(sx==2)name[s+1]=cg(y[sx]);
 if(sx==3)code[s+1]=cg(y[sx]);
 
 }
 
 }
 
 
 
 
}
String cg(String c){
 
        int p1=c.indexOf("\"");
        int p2=c.indexOf("\"",p1+1);
        c=c.substring(p1+1,p2);
        return c;
    }
 
 
 
}
 
最終更新:2016年09月10日 02:00