アットウィキロゴ

kkk

package book4;

import tool.*;

public class pro {

  int s,datanumber;
  String[] [[data]]=new String[6000];
   
   
   public static void main(String[] args) {
      pro te=new pro();
   }
   pro(){
       
       
       String a,t;
       
    makeutf sub2=new makeutf();
    a=sub2.makedata("司馬");
    t=sub2.makedata("全集14");

int v=100;

String urlx="https://app.rakuten.co.jp/services/api/BooksBook/Search/20130522?applicationId=cc7aedb3ecd1a722df68c90e98298864";
if(v>50)urlx=urlx+ "&author=";
if(v>60)urlx=urlx+a;
urlx=urlx+"&title=";
urlx=urlx+t;


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("isbn");
 if(p1>0) p1=str.indexOf(":\"",p1);
 int p2=str.indexOf("\"",p1+2);
 String isbn="";
  if(p1>0)isbn=str.substring(p1+2,p2);
  
  
  
  
String pic="";

  p1=str.indexOf("largeImageUrl");
 if(p1>0) p1=str.indexOf(":\"",p1);
 p2=str.indexOf("\"",p1+2);
  if(p1>0)pic=str.substring(p1+2,p2);
       
       System.out.println(pic);
   }
   
   
   
}
最終更新:2015年11月12日 22:03