@jackwener/opencli 0.4.1 → 0.4.2

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.
@@ -2,62 +2,183 @@
2
2
  {
3
3
  "site": "bbc",
4
4
  "name": "news",
5
- "description": "",
6
- "strategy": "cookie",
5
+ "description": "BBC News headlines (RSS)",
6
+ "strategy": "public",
7
7
  "browser": true,
8
- "args": [],
8
+ "args": [
9
+ {
10
+ "name": "limit",
11
+ "type": "int",
12
+ "default": 20,
13
+ "required": false,
14
+ "help": "Number of headlines (max 50)"
15
+ }
16
+ ],
9
17
  "type": "ts",
10
- "modulePath": "bbc/news.js"
18
+ "modulePath": "bbc/news.js",
19
+ "domain": "www.bbc.com",
20
+ "columns": [
21
+ "rank",
22
+ "title",
23
+ "description",
24
+ "url"
25
+ ]
11
26
  },
12
27
  {
13
28
  "site": "bilibili",
14
29
  "name": "dynamic",
15
- "description": "",
30
+ "description": "Get Bilibili user dynamic feed",
16
31
  "strategy": "cookie",
17
32
  "browser": true,
18
- "args": [],
33
+ "args": [
34
+ {
35
+ "name": "limit",
36
+ "type": "int",
37
+ "default": 15,
38
+ "required": false,
39
+ "help": ""
40
+ }
41
+ ],
19
42
  "type": "ts",
20
- "modulePath": "bilibili/dynamic.js"
43
+ "modulePath": "bilibili/dynamic.js",
44
+ "domain": "www.bilibili.com",
45
+ "columns": [
46
+ "id",
47
+ "author",
48
+ "text",
49
+ "likes",
50
+ "url"
51
+ ]
21
52
  },
22
53
  {
23
54
  "site": "bilibili",
24
55
  "name": "favorite",
25
- "description": "",
56
+ "description": "我的默认收藏夹",
26
57
  "strategy": "cookie",
27
58
  "browser": true,
28
- "args": [],
59
+ "args": [
60
+ {
61
+ "name": "limit",
62
+ "type": "int",
63
+ "default": 20,
64
+ "required": false,
65
+ "help": "Number of results"
66
+ },
67
+ {
68
+ "name": "page",
69
+ "type": "int",
70
+ "default": 1,
71
+ "required": false,
72
+ "help": "Page number"
73
+ }
74
+ ],
29
75
  "type": "ts",
30
- "modulePath": "bilibili/favorite.js"
76
+ "modulePath": "bilibili/favorite.js",
77
+ "domain": "www.bilibili.com",
78
+ "columns": [
79
+ "rank",
80
+ "title",
81
+ "author",
82
+ "plays",
83
+ "url"
84
+ ]
31
85
  },
32
86
  {
33
87
  "site": "bilibili",
34
88
  "name": "feed",
35
- "description": "",
89
+ "description": "关注的人的动态时间线",
36
90
  "strategy": "cookie",
37
91
  "browser": true,
38
- "args": [],
92
+ "args": [
93
+ {
94
+ "name": "limit",
95
+ "type": "int",
96
+ "default": 20,
97
+ "required": false,
98
+ "help": "Number of results"
99
+ },
100
+ {
101
+ "name": "type",
102
+ "type": "str",
103
+ "default": "all",
104
+ "required": false,
105
+ "help": "Filter: all, video, article"
106
+ }
107
+ ],
39
108
  "type": "ts",
40
- "modulePath": "bilibili/feed.js"
109
+ "modulePath": "bilibili/feed.js",
110
+ "domain": "www.bilibili.com",
111
+ "columns": [
112
+ "rank",
113
+ "author",
114
+ "title",
115
+ "type",
116
+ "url"
117
+ ]
41
118
  },
42
119
  {
43
120
  "site": "bilibili",
44
121
  "name": "following",
45
- "description": "",
122
+ "description": "获取 Bilibili 用户的关注列表",
46
123
  "strategy": "cookie",
47
124
  "browser": true,
48
- "args": [],
125
+ "args": [
126
+ {
127
+ "name": "uid",
128
+ "type": "str",
129
+ "required": false,
130
+ "help": "目标用户 ID(默认为当前登录用户)"
131
+ },
132
+ {
133
+ "name": "page",
134
+ "type": "int",
135
+ "default": 1,
136
+ "required": false,
137
+ "help": "页码"
138
+ },
139
+ {
140
+ "name": "limit",
141
+ "type": "int",
142
+ "default": 50,
143
+ "required": false,
144
+ "help": "每页数量 (最大 50)"
145
+ }
146
+ ],
49
147
  "type": "ts",
50
- "modulePath": "bilibili/following.js"
148
+ "modulePath": "bilibili/following.js",
149
+ "columns": [
150
+ "mid",
151
+ "name",
152
+ "sign",
153
+ "following",
154
+ "fans"
155
+ ]
51
156
  },
52
157
  {
53
158
  "site": "bilibili",
54
159
  "name": "history",
55
- "description": "",
160
+ "description": "我的观看历史",
56
161
  "strategy": "cookie",
57
162
  "browser": true,
58
- "args": [],
163
+ "args": [
164
+ {
165
+ "name": "limit",
166
+ "type": "int",
167
+ "default": 20,
168
+ "required": false,
169
+ "help": "Number of results"
170
+ }
171
+ ],
59
172
  "type": "ts",
60
- "modulePath": "bilibili/history.js"
173
+ "modulePath": "bilibili/history.js",
174
+ "domain": "www.bilibili.com",
175
+ "columns": [
176
+ "rank",
177
+ "title",
178
+ "author",
179
+ "progress",
180
+ "url"
181
+ ]
61
182
  },
62
183
  {
63
184
  "site": "bilibili",
@@ -107,72 +228,244 @@
107
228
  {
108
229
  "site": "bilibili",
109
230
  "name": "me",
110
- "description": "",
231
+ "description": "My Bilibili profile info",
111
232
  "strategy": "cookie",
112
233
  "browser": true,
113
234
  "args": [],
114
235
  "type": "ts",
115
- "modulePath": "bilibili/me.js"
236
+ "modulePath": "bilibili/me.js",
237
+ "domain": "www.bilibili.com",
238
+ "columns": [
239
+ "name",
240
+ "uid",
241
+ "level",
242
+ "coins",
243
+ "followers",
244
+ "following"
245
+ ]
116
246
  },
117
247
  {
118
248
  "site": "bilibili",
119
249
  "name": "ranking",
120
- "description": "",
250
+ "description": "Get Bilibili video ranking board",
121
251
  "strategy": "cookie",
122
252
  "browser": true,
123
- "args": [],
253
+ "args": [
254
+ {
255
+ "name": "limit",
256
+ "type": "int",
257
+ "default": 20,
258
+ "required": false,
259
+ "help": ""
260
+ }
261
+ ],
124
262
  "type": "ts",
125
- "modulePath": "bilibili/ranking.js"
263
+ "modulePath": "bilibili/ranking.js",
264
+ "domain": "www.bilibili.com",
265
+ "columns": [
266
+ "rank",
267
+ "title",
268
+ "author",
269
+ "score",
270
+ "url"
271
+ ]
126
272
  },
127
273
  {
128
274
  "site": "bilibili",
129
275
  "name": "search",
130
- "description": "",
276
+ "description": "Search Bilibili videos or users",
131
277
  "strategy": "cookie",
132
278
  "browser": true,
133
- "args": [],
279
+ "args": [
280
+ {
281
+ "name": "keyword",
282
+ "type": "str",
283
+ "required": true,
284
+ "help": "Search keyword"
285
+ },
286
+ {
287
+ "name": "type",
288
+ "type": "str",
289
+ "default": "video",
290
+ "required": false,
291
+ "help": "video or user"
292
+ },
293
+ {
294
+ "name": "page",
295
+ "type": "int",
296
+ "default": 1,
297
+ "required": false,
298
+ "help": "Result page"
299
+ },
300
+ {
301
+ "name": "limit",
302
+ "type": "int",
303
+ "default": 20,
304
+ "required": false,
305
+ "help": "Number of results"
306
+ }
307
+ ],
134
308
  "type": "ts",
135
- "modulePath": "bilibili/search.js"
309
+ "modulePath": "bilibili/search.js",
310
+ "domain": "www.bilibili.com",
311
+ "columns": [
312
+ "rank",
313
+ "title",
314
+ "author",
315
+ "score",
316
+ "url"
317
+ ]
136
318
  },
137
319
  {
138
320
  "site": "bilibili",
139
321
  "name": "subtitle",
140
- "description": "",
322
+ "description": "获取 Bilibili 视频的字幕",
141
323
  "strategy": "cookie",
142
324
  "browser": true,
143
- "args": [],
325
+ "args": [
326
+ {
327
+ "name": "bvid",
328
+ "type": "str",
329
+ "required": true,
330
+ "help": ""
331
+ },
332
+ {
333
+ "name": "lang",
334
+ "type": "str",
335
+ "required": false,
336
+ "help": "字幕语言代码 (如 zh-CN, en-US, ai-zh),默认取第一个"
337
+ }
338
+ ],
144
339
  "type": "ts",
145
- "modulePath": "bilibili/subtitle.js"
340
+ "modulePath": "bilibili/subtitle.js",
341
+ "columns": [
342
+ "index",
343
+ "from",
344
+ "to",
345
+ "content"
346
+ ]
146
347
  },
147
348
  {
148
349
  "site": "bilibili",
149
350
  "name": "user-videos",
150
- "description": "",
351
+ "description": "查看指定用户的投稿视频",
151
352
  "strategy": "cookie",
152
353
  "browser": true,
153
- "args": [],
354
+ "args": [
355
+ {
356
+ "name": "uid",
357
+ "type": "str",
358
+ "required": true,
359
+ "help": "User UID or username"
360
+ },
361
+ {
362
+ "name": "limit",
363
+ "type": "int",
364
+ "default": 20,
365
+ "required": false,
366
+ "help": "Number of results"
367
+ },
368
+ {
369
+ "name": "order",
370
+ "type": "str",
371
+ "default": "pubdate",
372
+ "required": false,
373
+ "help": "Sort: pubdate, click, stow"
374
+ },
375
+ {
376
+ "name": "page",
377
+ "type": "int",
378
+ "default": 1,
379
+ "required": false,
380
+ "help": "Page number"
381
+ }
382
+ ],
154
383
  "type": "ts",
155
- "modulePath": "bilibili/user-videos.js"
384
+ "modulePath": "bilibili/user-videos.js",
385
+ "domain": "www.bilibili.com",
386
+ "columns": [
387
+ "rank",
388
+ "title",
389
+ "plays",
390
+ "likes",
391
+ "date",
392
+ "url"
393
+ ]
156
394
  },
157
395
  {
158
396
  "site": "boss",
159
397
  "name": "search",
160
- "description": "",
398
+ "description": "BOSS直聘搜索职位",
161
399
  "strategy": "cookie",
162
400
  "browser": true,
163
- "args": [],
401
+ "args": [
402
+ {
403
+ "name": "query",
404
+ "type": "str",
405
+ "required": true,
406
+ "help": "Search keyword (e.g. AI agent, 前端)"
407
+ },
408
+ {
409
+ "name": "city",
410
+ "type": "str",
411
+ "default": "101010100",
412
+ "required": false,
413
+ "help": "City code (101010100=北京, 101020100=上海, 101210100=杭州, 101280100=广州)"
414
+ },
415
+ {
416
+ "name": "limit",
417
+ "type": "int",
418
+ "default": 15,
419
+ "required": false,
420
+ "help": "Number of results"
421
+ }
422
+ ],
164
423
  "type": "ts",
165
- "modulePath": "boss/search.js"
424
+ "modulePath": "boss/search.js",
425
+ "domain": "www.zhipin.com",
426
+ "columns": [
427
+ "name",
428
+ "salary",
429
+ "company",
430
+ "city",
431
+ "experience",
432
+ "degree",
433
+ "boss",
434
+ "url"
435
+ ]
166
436
  },
167
437
  {
168
438
  "site": "ctrip",
169
439
  "name": "search",
170
- "description": "",
440
+ "description": "携程旅行搜索",
171
441
  "strategy": "cookie",
172
442
  "browser": true,
173
- "args": [],
443
+ "args": [
444
+ {
445
+ "name": "query",
446
+ "type": "str",
447
+ "required": true,
448
+ "help": "Search keyword (city or attraction)"
449
+ },
450
+ {
451
+ "name": "limit",
452
+ "type": "int",
453
+ "default": 15,
454
+ "required": false,
455
+ "help": "Number of results"
456
+ }
457
+ ],
174
458
  "type": "ts",
175
- "modulePath": "ctrip/search.js"
459
+ "modulePath": "ctrip/search.js",
460
+ "domain": "www.ctrip.com",
461
+ "columns": [
462
+ "rank",
463
+ "name",
464
+ "type",
465
+ "score",
466
+ "price",
467
+ "url"
468
+ ]
176
469
  },
177
470
  {
178
471
  "site": "hackernews",
@@ -445,22 +738,67 @@
445
738
  {
446
739
  "site": "reuters",
447
740
  "name": "search",
448
- "description": "",
741
+ "description": "Reuters 路透社新闻搜索",
449
742
  "strategy": "cookie",
450
743
  "browser": true,
451
- "args": [],
744
+ "args": [
745
+ {
746
+ "name": "query",
747
+ "type": "str",
748
+ "required": true,
749
+ "help": "Search query"
750
+ },
751
+ {
752
+ "name": "limit",
753
+ "type": "int",
754
+ "default": 10,
755
+ "required": false,
756
+ "help": "Number of results (max 40)"
757
+ }
758
+ ],
452
759
  "type": "ts",
453
- "modulePath": "reuters/search.js"
760
+ "modulePath": "reuters/search.js",
761
+ "domain": "www.reuters.com",
762
+ "columns": [
763
+ "rank",
764
+ "title",
765
+ "date",
766
+ "section",
767
+ "url"
768
+ ]
454
769
  },
455
770
  {
456
771
  "site": "smzdm",
457
772
  "name": "search",
458
- "description": "",
773
+ "description": "什么值得买搜索好价",
459
774
  "strategy": "cookie",
460
775
  "browser": true,
461
- "args": [],
776
+ "args": [
777
+ {
778
+ "name": "keyword",
779
+ "type": "str",
780
+ "required": true,
781
+ "help": "Search keyword"
782
+ },
783
+ {
784
+ "name": "limit",
785
+ "type": "int",
786
+ "default": 20,
787
+ "required": false,
788
+ "help": "Number of results"
789
+ }
790
+ ],
462
791
  "type": "ts",
463
- "modulePath": "smzdm/search.js"
792
+ "modulePath": "smzdm/search.js",
793
+ "domain": "www.smzdm.com",
794
+ "columns": [
795
+ "rank",
796
+ "title",
797
+ "price",
798
+ "mall",
799
+ "comments",
800
+ "url"
801
+ ]
464
802
  },
465
803
  {
466
804
  "site": "twitter",
@@ -511,32 +849,90 @@
511
849
  {
512
850
  "site": "twitter",
513
851
  "name": "profile",
514
- "description": "",
515
- "strategy": "cookie",
852
+ "description": "Fetch tweets from a user profile",
853
+ "strategy": "intercept",
516
854
  "browser": true,
517
- "args": [],
855
+ "args": [
856
+ {
857
+ "name": "username",
858
+ "type": "string",
859
+ "required": true,
860
+ "help": ""
861
+ },
862
+ {
863
+ "name": "limit",
864
+ "type": "int",
865
+ "default": 15,
866
+ "required": false,
867
+ "help": ""
868
+ }
869
+ ],
518
870
  "type": "ts",
519
- "modulePath": "twitter/profile.js"
871
+ "modulePath": "twitter/profile.js",
872
+ "domain": "x.com",
873
+ "columns": [
874
+ "id",
875
+ "text",
876
+ "likes",
877
+ "views",
878
+ "url"
879
+ ]
520
880
  },
521
881
  {
522
882
  "site": "twitter",
523
883
  "name": "search",
524
- "description": "",
525
- "strategy": "cookie",
884
+ "description": "Search Twitter/X for tweets",
885
+ "strategy": "intercept",
526
886
  "browser": true,
527
- "args": [],
887
+ "args": [
888
+ {
889
+ "name": "query",
890
+ "type": "string",
891
+ "required": true,
892
+ "help": ""
893
+ },
894
+ {
895
+ "name": "limit",
896
+ "type": "int",
897
+ "default": 15,
898
+ "required": false,
899
+ "help": ""
900
+ }
901
+ ],
528
902
  "type": "ts",
529
- "modulePath": "twitter/search.js"
903
+ "modulePath": "twitter/search.js",
904
+ "domain": "x.com",
905
+ "columns": [
906
+ "id",
907
+ "author",
908
+ "text",
909
+ "likes",
910
+ "views",
911
+ "url"
912
+ ]
530
913
  },
531
914
  {
532
915
  "site": "twitter",
533
916
  "name": "timeline",
534
- "description": "",
917
+ "description": "Twitter Home Timeline",
535
918
  "strategy": "cookie",
536
919
  "browser": true,
537
- "args": [],
920
+ "args": [
921
+ {
922
+ "name": "limit",
923
+ "type": "int",
924
+ "default": 20,
925
+ "required": false,
926
+ "help": ""
927
+ }
928
+ ],
538
929
  "type": "ts",
539
- "modulePath": "twitter/timeline.js"
930
+ "modulePath": "twitter/timeline.js",
931
+ "domain": "x.com",
932
+ "columns": [
933
+ "responseType",
934
+ "first"
935
+ ]
540
936
  },
541
937
  {
542
938
  "site": "twitter",
@@ -704,12 +1100,29 @@
704
1100
  {
705
1101
  "site": "weibo",
706
1102
  "name": "hot",
707
- "description": "",
1103
+ "description": "微博热搜",
708
1104
  "strategy": "cookie",
709
1105
  "browser": true,
710
- "args": [],
1106
+ "args": [
1107
+ {
1108
+ "name": "limit",
1109
+ "type": "int",
1110
+ "default": 30,
1111
+ "required": false,
1112
+ "help": "Number of items (max 50)"
1113
+ }
1114
+ ],
711
1115
  "type": "ts",
712
- "modulePath": "weibo/hot.js"
1116
+ "modulePath": "weibo/hot.js",
1117
+ "domain": "weibo.com",
1118
+ "columns": [
1119
+ "rank",
1120
+ "word",
1121
+ "hot_value",
1122
+ "category",
1123
+ "label",
1124
+ "url"
1125
+ ]
713
1126
  },
714
1127
  {
715
1128
  "site": "xiaohongshu",
@@ -835,22 +1248,65 @@
835
1248
  {
836
1249
  "site": "xiaohongshu",
837
1250
  "name": "search",
838
- "description": "",
1251
+ "description": "搜索小红书笔记",
839
1252
  "strategy": "cookie",
840
1253
  "browser": true,
841
- "args": [],
1254
+ "args": [
1255
+ {
1256
+ "name": "keyword",
1257
+ "type": "str",
1258
+ "required": true,
1259
+ "help": "Search keyword"
1260
+ },
1261
+ {
1262
+ "name": "limit",
1263
+ "type": "int",
1264
+ "default": 20,
1265
+ "required": false,
1266
+ "help": "Number of results"
1267
+ }
1268
+ ],
842
1269
  "type": "ts",
843
- "modulePath": "xiaohongshu/search.js"
1270
+ "modulePath": "xiaohongshu/search.js",
1271
+ "domain": "www.xiaohongshu.com",
1272
+ "columns": [
1273
+ "rank",
1274
+ "title",
1275
+ "author",
1276
+ "likes"
1277
+ ]
844
1278
  },
845
1279
  {
846
1280
  "site": "xiaohongshu",
847
1281
  "name": "user",
848
- "description": "",
849
- "strategy": "cookie",
1282
+ "description": "Get user notes from Xiaohongshu",
1283
+ "strategy": "intercept",
850
1284
  "browser": true,
851
- "args": [],
1285
+ "args": [
1286
+ {
1287
+ "name": "id",
1288
+ "type": "string",
1289
+ "required": true,
1290
+ "help": ""
1291
+ },
1292
+ {
1293
+ "name": "limit",
1294
+ "type": "int",
1295
+ "default": 15,
1296
+ "required": false,
1297
+ "help": ""
1298
+ }
1299
+ ],
852
1300
  "type": "ts",
853
- "modulePath": "xiaohongshu/user.js"
1301
+ "modulePath": "xiaohongshu/user.js",
1302
+ "domain": "xiaohongshu.com",
1303
+ "columns": [
1304
+ "id",
1305
+ "title",
1306
+ "type",
1307
+ "likes",
1308
+ "url"
1309
+ ]
854
1310
  },
855
1311
  {
856
1312
  "site": "xueqiu",
@@ -1148,22 +1604,65 @@
1148
1604
  {
1149
1605
  "site": "yahoo-finance",
1150
1606
  "name": "quote",
1151
- "description": "",
1607
+ "description": "Yahoo Finance 股票行情",
1152
1608
  "strategy": "cookie",
1153
1609
  "browser": true,
1154
- "args": [],
1610
+ "args": [
1611
+ {
1612
+ "name": "symbol",
1613
+ "type": "str",
1614
+ "required": true,
1615
+ "help": "Stock ticker (e.g. AAPL, MSFT, TSLA)"
1616
+ }
1617
+ ],
1155
1618
  "type": "ts",
1156
- "modulePath": "yahoo-finance/quote.js"
1619
+ "modulePath": "yahoo-finance/quote.js",
1620
+ "domain": "finance.yahoo.com",
1621
+ "columns": [
1622
+ "symbol",
1623
+ "name",
1624
+ "price",
1625
+ "change",
1626
+ "changePercent",
1627
+ "open",
1628
+ "high",
1629
+ "low",
1630
+ "volume",
1631
+ "marketCap"
1632
+ ]
1157
1633
  },
1158
1634
  {
1159
1635
  "site": "youtube",
1160
1636
  "name": "search",
1161
- "description": "",
1637
+ "description": "Search YouTube videos",
1162
1638
  "strategy": "cookie",
1163
1639
  "browser": true,
1164
- "args": [],
1640
+ "args": [
1641
+ {
1642
+ "name": "query",
1643
+ "type": "str",
1644
+ "required": true,
1645
+ "help": "Search query"
1646
+ },
1647
+ {
1648
+ "name": "limit",
1649
+ "type": "int",
1650
+ "default": 20,
1651
+ "required": false,
1652
+ "help": "Max results (max 50)"
1653
+ }
1654
+ ],
1165
1655
  "type": "ts",
1166
- "modulePath": "youtube/search.js"
1656
+ "modulePath": "youtube/search.js",
1657
+ "domain": "www.youtube.com",
1658
+ "columns": [
1659
+ "rank",
1660
+ "title",
1661
+ "channel",
1662
+ "views",
1663
+ "duration",
1664
+ "url"
1665
+ ]
1167
1666
  },
1168
1667
  {
1169
1668
  "site": "zhihu",
@@ -1212,12 +1711,33 @@
1212
1711
  {
1213
1712
  "site": "zhihu",
1214
1713
  "name": "question",
1215
- "description": "",
1714
+ "description": "知乎问题详情和回答",
1216
1715
  "strategy": "cookie",
1217
1716
  "browser": true,
1218
- "args": [],
1717
+ "args": [
1718
+ {
1719
+ "name": "id",
1720
+ "type": "str",
1721
+ "required": true,
1722
+ "help": "Question ID (numeric)"
1723
+ },
1724
+ {
1725
+ "name": "limit",
1726
+ "type": "int",
1727
+ "default": 5,
1728
+ "required": false,
1729
+ "help": "Number of answers"
1730
+ }
1731
+ ],
1219
1732
  "type": "ts",
1220
- "modulePath": "zhihu/question.js"
1733
+ "modulePath": "zhihu/question.js",
1734
+ "domain": "www.zhihu.com",
1735
+ "columns": [
1736
+ "rank",
1737
+ "author",
1738
+ "votes",
1739
+ "content"
1740
+ ]
1221
1741
  },
1222
1742
  {
1223
1743
  "site": "zhihu",