package movie;
import tool.*;
public class bing {
int s,datanumber;
String[] data=new String[6000];
String makedata(String ww){
String word=ww+" site:movie.walkerplus.com/";
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="movie.walkerplus.com/mv";
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("/mv");
int p2=pp.indexOf("/",p1+1);
if(p1>-1)pp=pp.substring(p1+1,p2);
return pp;
}
}
最終更新:2017年04月02日 15:58