From 801af537ec2d2923212fd49ab2ae7291abd82caf Mon Sep 17 00:00:00 2001 From: pxskm4tvn <2836285168@qq.com> Date: Wed, 18 Sep 2024 00:05:03 +0800 Subject: [PATCH] =?UTF-8?q?Delete=20'=E4=B8=BB=E5=87=BD=E6=95=B0.md'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 主函数.md | 30 ------------------------------ 1 file changed, 30 deletions(-) delete mode 100644 主函数.md diff --git a/主函数.md b/主函数.md deleted file mode 100644 index 1f044ec..0000000 --- a/主函数.md +++ /dev/null @@ -1,30 +0,0 @@ -async function main() { - // 爬取第1页到第10页的视频BV号 - for (let i = 1; i <= 10; i++) { - await getBv(i); - } - console.log("BV列表长度:", bvList.length); - - // 将BV号写入本地文件 - fs.writeFileSync('bv.txt', bvList.join('\n'), 'utf-8'); - - // 对于每个BV号,爬取CID号 - bvList.forEach(bv => { - getCid(bv); - }); - console.log("CID列表长度:", cidList.length); - - // 将CID号写入本地文件 - fs.writeFileSync('cid.txt', cidList.join('\n'), 'utf-8'); - - // 对于每个CID号,爬取弹幕内容 -cidList.forEach(cid => { -getChat(cid); -}); -console.log("弹幕内容列表长度:", chatList.length); - -// 将弹幕内容写入本地文件 -fs.writeFileSync('chat.txt', chatList.join('\n'), 'utf-8'); -} - -main();