|
|
@ -1,11 +1,9 @@
|
|
|
|
```javascript
|
|
|
|
const axios = require('axios');
|
|
|
|
const axios = require('axios');
|
|
|
|
const cheerio = require('cheerio');
|
|
|
|
const cheerio = require('cheerio');
|
|
|
|
const fs = require('fs');
|
|
|
|
const fs = require('fs');
|
|
|
|
const { JSDOM } = require('jsdom');
|
|
|
|
const { JSDOM } = require('jsdom');
|
|
|
|
|
|
|
|
|
|
|
|
// 初始化空数组,用于存储BV号、CID号和弹幕内容
|
|
|
|
// 初始化空数组,用于存储BV号、CID号和弹幕内容
|
|
|
|
let bvList = [];
|
|
|
|
let bvList = [];
|
|
|
|
let cidList = [];
|
|
|
|
let cidList = [];
|
|
|
|
let chatList = [];
|
|
|
|
let chatList = [];
|
|
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|