ns-rss-spider 1.1.13 → 1.1.14

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.
@@ -0,0 +1,4 @@
1
+ import { ParseTpl } from "../parseContent/newsletter/types";
2
+ import { ParseStrategy } from "../types";
3
+ export declare const tpl: ParseTpl;
4
+ export declare const aiweekly: ParseStrategy;
@@ -0,0 +1,56 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __export = (target, all) => {
6
+ for (var name in all)
7
+ __defProp(target, name, { get: all[name], enumerable: true });
8
+ };
9
+ var __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from === "object" || typeof from === "function") {
11
+ for (let key of __getOwnPropNames(from))
12
+ if (!__hasOwnProp.call(to, key) && key !== except)
13
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
+ }
15
+ return to;
16
+ };
17
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
+
19
+ // src/parsers/aiweekly.ts
20
+ var aiweekly_exports = {};
21
+ __export(aiweekly_exports, {
22
+ aiweekly: () => aiweekly,
23
+ tpl: () => tpl
24
+ });
25
+ module.exports = __toCommonJS(aiweekly_exports);
26
+ var import_tpl = require("../parseContent/newsletter/tpl");
27
+ var tpl = {
28
+ description: ".category.cc-comment #comment > .item--issue",
29
+ descriptionRemoveLink: true,
30
+ groupTopic: {
31
+ group: ".issue__body > .category",
32
+ title: "h2.category__title",
33
+ item: ".item.item--issue",
34
+ noteLink: "h3.item__title > a",
35
+ noteBody: "p",
36
+ noteRichDesc: true,
37
+ noteRichDescRemoveLink: true
38
+ }
39
+ };
40
+ var aiweekly = {
41
+ parse: true,
42
+ fetcher: "http",
43
+ articleType: "newsletter",
44
+ getContentElementFromArticle($) {
45
+ return $("article.issue");
46
+ },
47
+ run: async ($, el) => {
48
+ const rst = await (0, import_tpl.parse)(tpl, $, el);
49
+ return rst;
50
+ }
51
+ };
52
+ // Annotate the CommonJS export names for ESM import in node:
53
+ 0 && (module.exports = {
54
+ aiweekly,
55
+ tpl
56
+ });
@@ -38,6 +38,7 @@ var import_cssweekly = require("./parsers/cssweekly");
38
38
  var import_javascriptweekly = require("./parsers/javascriptweekly");
39
39
  var import_oschina_project = require("./parsers/oschina-project");
40
40
  var import_op7418 = require("./parsers/op7418");
41
+ var import_aiweekly = require("./parsers/aiweekly");
41
42
  var strategies = {
42
43
  cnbeta: import_cnbeta.cnbeta,
43
44
  ifanr: import_ifanr.ifanr,
@@ -58,7 +59,8 @@ var strategies = {
58
59
  reactstatus: import_javascriptweekly.javascriptweekly,
59
60
  frontendfocus: import_javascriptweekly.javascriptweekly,
60
61
  // aigc weekly
61
- op7418: import_op7418.op7418
62
+ op7418: import_op7418.op7418,
63
+ aiweekly: import_aiweekly.aiweekly
62
64
  };
63
65
  // Annotate the CommonJS export names for ESM import in node:
64
66
  0 && (module.exports = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ns-rss-spider",
3
- "version": "1.1.13",
3
+ "version": "1.1.14",
4
4
  "description": "",
5
5
  "main": "dist/cjs/index.js",
6
6
  "types": "dist/cjs/index.d.ts",