@cloud411716/fancy-webnovel 0.1.46 → 0.1.47
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/plugins/fancy-scan/scripts/run-scan.js +4 -4
- package/plugins/fancy-scan/scripts/scrapers/{fanqie-rank-scraper.js → fanqie-rank-scraper.cjs} +1 -1
- package/plugins/fancy-scan/scripts/scrapers/{jjwxc-rank-scraper.js → jjwxc-rank-scraper.cjs} +1 -1
- package/plugins/fancy-scan/scripts/scrapers/{qimao-rank-scraper.js → qimao-rank-scraper.cjs} +1 -1
- package/plugins/fancy-scan/scripts/scrapers/{zhihu-rank-scraper.js → zhihu-rank-scraper.cjs} +1 -1
- /package/plugins/fancy-scan/scripts/scrapers/{cdp-utils.js → cdp-utils.cjs} +0 -0
package/package.json
CHANGED
|
@@ -213,22 +213,22 @@ function scraperArgs(platform, length) {
|
|
|
213
213
|
switch (platform) {
|
|
214
214
|
case 'fanqie':
|
|
215
215
|
return {
|
|
216
|
-
script: 'fanqie-rank-scraper.
|
|
216
|
+
script: 'fanqie-rank-scraper.cjs',
|
|
217
217
|
extra: ['--channel', 'all', '--top', '20'],
|
|
218
218
|
};
|
|
219
219
|
case 'jinjiang':
|
|
220
220
|
return {
|
|
221
|
-
script: 'jjwxc-rank-scraper.
|
|
221
|
+
script: 'jjwxc-rank-scraper.cjs',
|
|
222
222
|
extra: ['--type', '12'],
|
|
223
223
|
};
|
|
224
224
|
case 'zhihu':
|
|
225
225
|
return {
|
|
226
|
-
script: 'zhihu-rank-scraper.
|
|
226
|
+
script: 'zhihu-rank-scraper.cjs',
|
|
227
227
|
extra: ['--length', length === 'short' ? 'short' : 'long'],
|
|
228
228
|
};
|
|
229
229
|
case 'qimao':
|
|
230
230
|
return {
|
|
231
|
-
script: 'qimao-rank-scraper.
|
|
231
|
+
script: 'qimao-rank-scraper.cjs',
|
|
232
232
|
extra: ['--channel', length === 'short' ? 'female' : 'male', '--type', 'hot'],
|
|
233
233
|
};
|
|
234
234
|
case 'dianzhong':
|
package/plugins/fancy-scan/scripts/scrapers/{fanqie-rank-scraper.js → fanqie-rank-scraper.cjs}
RENAMED
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
|
|
21
21
|
const fs = require("fs");
|
|
22
22
|
const path = require("path");
|
|
23
|
-
const { ab, sleep, evalJSONBase64, scrollLoad, getArg, localDateStamp, runCli } = require("./cdp-utils");
|
|
23
|
+
const { ab, sleep, evalJSONBase64, scrollLoad, getArg, localDateStamp, runCli } = require("./cdp-utils.cjs");
|
|
24
24
|
|
|
25
25
|
// 一次详情请求的并发批大小。番茄详情页用同步 XHR 拉取,批太大会撞上
|
|
26
26
|
// cdp-utils 里 ab() 的 20s 超时;超时会显式失败,这里分批是为了避免整个题材被中断。
|
package/plugins/fancy-scan/scripts/scrapers/{jjwxc-rank-scraper.js → jjwxc-rank-scraper.cjs}
RENAMED
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
|
|
25
25
|
const fs = require("fs");
|
|
26
26
|
const path = require("path");
|
|
27
|
-
const { ab, sleep, evalJSONBase64, getArg, localDateStamp, runCli } = require("./cdp-utils");
|
|
27
|
+
const { ab, sleep, evalJSONBase64, getArg, localDateStamp, runCli } = require("./cdp-utils.cjs");
|
|
28
28
|
|
|
29
29
|
const BASE_URL = "https://www.jjwxc.net/topten.php";
|
|
30
30
|
|
package/plugins/fancy-scan/scripts/scrapers/{qimao-rank-scraper.js → qimao-rank-scraper.cjs}
RENAMED
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
|
|
20
20
|
const fs = require("fs");
|
|
21
21
|
const path = require("path");
|
|
22
|
-
const { ab, sleep, evalJSONBase64, scrollLoad, getArg, localDateStamp, runCli } = require("./cdp-utils");
|
|
22
|
+
const { ab, sleep, evalJSONBase64, scrollLoad, getArg, localDateStamp, runCli } = require("./cdp-utils.cjs");
|
|
23
23
|
|
|
24
24
|
const RANK_URL = "https://www.qimao.com/paihang";
|
|
25
25
|
|
package/plugins/fancy-scan/scripts/scrapers/{zhihu-rank-scraper.js → zhihu-rank-scraper.cjs}
RENAMED
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
|
|
22
22
|
const fs = require("fs");
|
|
23
23
|
const path = require("path");
|
|
24
|
-
const { ab, evalJSONBase64, getArg, localDateStamp, runCli } = require("./cdp-utils");
|
|
24
|
+
const { ab, evalJSONBase64, getArg, localDateStamp, runCli } = require("./cdp-utils.cjs");
|
|
25
25
|
|
|
26
26
|
const PORT = 9222;
|
|
27
27
|
const OUTDIR = getArg(process.argv, "--outdir") || "扫榜结果";
|
|
File without changes
|