var id=new Array();
function myFunction() {
uu="http://talent.search.yahoo.co.jp/search?p=%E9%AB%98%E6%A9%8B%E6%84%9B"
var res = UrlFetchApp.fetch(uu);
id="1FeV7tgqmHrxnwtPmiuDPiqD8znQV4UGBHul-bFlLQoc";
var ex1 = SpreadsheetApp.openById(id);
var sheet = ex1.getSheetByName("data");
d=""+res;
pp="pf/detail/pp";
a=d.split(">");
sx=0;
for(s=1;s<a.length;s++){
if(a[s].indexOf(pp)>-2)sx=sx+1;
if(a[s].indexOf(pp)>-2)id[sx]=""+a[s];
}
for(s=1;s<sx+1;s++){
sheet.getRange(s,1).setValue(id[s]);
}
}
最終更新:2016年08月06日 18:29