アットウィキロゴ

kodexr555

package yagyu;
 
import tool.*;
 
public class pro {
 
    int s,datanumber;
    String[] data=new String[6000];
 
 
    public static void main(String[] args) {
       pro t=new pro();
    }
 
    pro(){
 
        String word="オリコン芸能事典"+" "+"秋本奈緒美";
 
        makeutf sub6=new makeutf();
        String d=sub6.makedata(word);
 
 
           String urlx="https://www.bing.com/search?q=";
           urlx=urlx+d;
 
 
        getdata sub7=new getdata();
        sub7.makedata(urlx,"UTF-8");
        data=sub7.data;
        datanumber=sub7.datanumber; 
 
        String ss="aria-label=\"検索結果";
 
        String str="";
 
        for(s=1;s<datanumber+1;s++){
 
        if(data[s].indexOf(ss)>-1)str=data[s];
 
        } 
 
        String[] x=str.split(">");
 
        String d2="http://www.oricon.co.jp/prof/artist/";
        String pp="";
 
     for(s=0;s<x.length;s++){   
     int h=0;
    if(x[s].indexOf(d2)>-1)h=h+1;
    if(pp.length()==0)h=h+1;
    if(h==2)pp=x[s];
    }
 
    int p1=pp.indexOf("prof/artist/");
    int p2=pp.indexOf("\"",p1);
    if(p1>-1)pp=pp.substring(p1,p2); 
 
 System.out.println(pp);
 
 
 
 
 
    }
 
 
}
 
最終更新:2016年08月11日 07:36