井戸端の底500件をdenoで取得
code:soko.ts
interface ScrapboxPagesJson {
count: number;
pages: { title: string }[];
}
fetch(
).then((pagecountjsonr) => {
return pagecountjsonr.json();
}).then((pagecountjson) => {
const pagecount = pagecountjson"count"; return fetch(
pagecount - 500
}`,
);
}).then((pglisttempjsonr) => {
return pglisttempjsonr.json();
}).then((pglisttempjson: ScrapboxPagesJson) => {
const pglist: string[] = [];
pglisttempjson"pages".forEach((e: { title: string }) => { });
return Deno.writeTextFile("villagepumpsoko.txt", pglist.join("\n"));
}).then(() => {
console.log("ok");
});