@cloud411716/fancy-webnovel 0.1.53 → 0.1.55
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
CHANGED
|
@@ -20,7 +20,6 @@ import { fileURLToPath } from 'url';
|
|
|
20
20
|
// 平台配置
|
|
21
21
|
// ---------------------------------------------------------------------------
|
|
22
22
|
|
|
23
|
-
const VALID_PLATFORMS = ['qidian', 'fanqie', 'jinjiang', 'zhihu', 'dianzhong', 'qimao'];
|
|
24
23
|
const VALID_LENGTHS = ['long', 'short'];
|
|
25
24
|
|
|
26
25
|
const PLATFORM_SUPPORTED_LENGTHS = {
|
|
@@ -28,7 +27,6 @@ const PLATFORM_SUPPORTED_LENGTHS = {
|
|
|
28
27
|
fanqie: ['long'],
|
|
29
28
|
jinjiang: ['long'],
|
|
30
29
|
zhihu: ['long', 'short'],
|
|
31
|
-
dianzhong:['short'],
|
|
32
30
|
qimao: ['long', 'short'],
|
|
33
31
|
};
|
|
34
32
|
|
|
@@ -37,7 +35,6 @@ const PLATFORM_CN = {
|
|
|
37
35
|
fanqie: '番茄',
|
|
38
36
|
jinjiang: '晋江',
|
|
39
37
|
zhihu: '知乎',
|
|
40
|
-
dianzhong:'点众',
|
|
41
38
|
qimao: '七猫',
|
|
42
39
|
};
|
|
43
40
|
|
|
@@ -244,7 +241,6 @@ function scraperArgs(platform, length, outDir) {
|
|
|
244
241
|
script: 'qimao-rank-scraper.cjs',
|
|
245
242
|
extra: ['--channel', length === 'short' ? 'female' : 'male', '--type', 'hot', '--outdir', outDir],
|
|
246
243
|
};
|
|
247
|
-
case 'dianzhong':
|
|
248
244
|
return { script: null, extra: [] };
|
|
249
245
|
default:
|
|
250
246
|
return { script: null, extra: [] };
|
|
@@ -8,7 +8,6 @@
|
|
|
8
8
|
| `fanqie` | 番茄 | 长篇 | ✅ | ❌ |
|
|
9
9
|
| `jinjiang` | 晋江 | 长篇 | ✅ | ❌ |
|
|
10
10
|
| `zhihu` | 知乎 | 需选择 | ✅ | ✅ |
|
|
11
|
-
| `dianzhong` | 点众 | 短篇 | ❌ | ✅ |
|
|
12
11
|
| `qimao` | 七猫 | 需选择 | ✅ | ✅ |
|
|
13
12
|
|
|
14
13
|
---
|
|
@@ -57,12 +56,6 @@
|
|
|
57
56
|
|
|
58
57
|
> ⚠️ 知乎**需要登录**才能看完整榜单。先在 Chrome 中手动登录 zhihu.com 再采集。
|
|
59
58
|
|
|
60
|
-
### 点众(dianzhong)
|
|
61
|
-
|
|
62
|
-
| 篇幅 | Scraper | 采集模式 | 示例命令 |
|
|
63
|
-
|------|---------|---------|---------|
|
|
64
|
-
| 短篇 | dz-browse-scraper.js | CDP(需要 Chrome)| `node dz-browse-scraper.js --channel all --outdir {out}` |
|
|
65
|
-
|
|
66
59
|
### 七猫(qimao)
|
|
67
60
|
|
|
68
61
|
| 篇幅 | Scraper | 采集模式 | 示例命令 |
|
|
@@ -96,7 +89,6 @@ fancy-scan/
|
|
|
96
89
|
├── fanqie-rank-scraper.js
|
|
97
90
|
├── jjwxc-rank-scraper.js
|
|
98
91
|
├── zhihu-rank-scraper.js
|
|
99
|
-
├── dz-browse-scraper.js
|
|
100
92
|
└── qimao-rank-scraper.js
|
|
101
93
|
```
|
|
102
94
|
|
|
@@ -112,4 +104,3 @@ fancy-scan/
|
|
|
112
104
|
- `起点畅销榜_20260827.md`
|
|
113
105
|
- `番茄男频阅读榜_20260827.md`
|
|
114
106
|
- `七猫大热榜_20260827.md`
|
|
115
|
-
- `点众男频短篇_20260827.md`
|
|
@@ -10,9 +10,8 @@ export const PLATFORM_TABLE = [
|
|
|
10
10
|
['1', 'qidian', '长篇', '起点'],
|
|
11
11
|
['2', 'fanqie', '长篇', '番茄'],
|
|
12
12
|
['3', 'jinjiang', '长篇', '晋江'],
|
|
13
|
-
['4', 'zhihu', '
|
|
14
|
-
['5', '
|
|
15
|
-
['6', 'qimao', '长/短','七猫'],
|
|
13
|
+
['4', 'zhihu', '需选择', '知乎'],
|
|
14
|
+
['5', 'qimao', '需选择', '七猫'],
|
|
16
15
|
];
|
|
17
16
|
|
|
18
17
|
export function platformLabel(platform) {
|
|
@@ -36,7 +35,7 @@ export const scan = {
|
|
|
36
35
|
},
|
|
37
36
|
|
|
38
37
|
askPlatform() {
|
|
39
|
-
return { question: '📊 请选择要扫的平台(输入编号 1-
|
|
38
|
+
return { question: '📊 请选择要扫的平台(输入编号 1-5):' };
|
|
40
39
|
},
|
|
41
40
|
|
|
42
41
|
askLength(platform) {
|
|
@@ -59,7 +58,7 @@ export const scan = {
|
|
|
59
58
|
return '⚠️ 当前目录尚未初始化。请先运行 /fancy-bootstrap 进行初始化。';
|
|
60
59
|
|
|
61
60
|
case 'invalid_choice':
|
|
62
|
-
return '❌ 无效选择,请输入 1-
|
|
61
|
+
return '❌ 无效选择,请输入 1-5 的编号。';
|
|
63
62
|
|
|
64
63
|
case 'cancelled':
|
|
65
64
|
return '🚫 已取消';
|