function myFunction() {
let url = "https://www.fujisan.co.jp/product/1281683101/b/list/?limit=45&page=4";
let html = UrlFetchApp.fetch(url).getContentText();
let parse = Parser.data(html);
let biblio = parse.from('<div class="card-book-toc">').to('</div>').iterate();
let ss = SpreadsheetApp.getActiveSpreadsheet();
let sheet = ss.getSheetByName("シート1");
for(let i=0;i <= biblio.length; i++){
sheet.getRange(i+1,1).setValue(biblio[i]);
}
}
投稿日:2022/09/03
修正日:2022/09/01