ns-rss-spider 1.1.16 → 1.2.0
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,41 @@
|
|
|
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/macrumors.ts
|
|
20
|
+
var macrumors_exports = {};
|
|
21
|
+
__export(macrumors_exports, {
|
|
22
|
+
macrumors: () => macrumors
|
|
23
|
+
});
|
|
24
|
+
module.exports = __toCommonJS(macrumors_exports);
|
|
25
|
+
var macrumors = {
|
|
26
|
+
parse: true,
|
|
27
|
+
fetcher: "http",
|
|
28
|
+
getContentElementFromArticle: ($) => {
|
|
29
|
+
const el = $("#maincontent > article");
|
|
30
|
+
return el;
|
|
31
|
+
},
|
|
32
|
+
getContentFromHtml: ($, $el) => {
|
|
33
|
+
const content = $el.find(".js-content > div");
|
|
34
|
+
content.find('[id^="AdThrive_Content_"]').remove();
|
|
35
|
+
return content.html() || "";
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
39
|
+
0 && (module.exports = {
|
|
40
|
+
macrumors
|
|
41
|
+
});
|
package/dist/cjs/strategy.js
CHANGED
|
@@ -39,6 +39,7 @@ 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
41
|
var import_aiweekly = require("./parsers/aiweekly");
|
|
42
|
+
var import_macrumors = require("./parsers/macrumors");
|
|
42
43
|
var strategies = {
|
|
43
44
|
cnbeta: import_cnbeta.cnbeta,
|
|
44
45
|
ifanr: import_ifanr.ifanr,
|
|
@@ -60,7 +61,8 @@ var strategies = {
|
|
|
60
61
|
frontendfocus: import_javascriptweekly.javascriptweekly,
|
|
61
62
|
// aigc weekly
|
|
62
63
|
op7418: import_op7418.op7418,
|
|
63
|
-
aiweekly: import_aiweekly.aiweekly
|
|
64
|
+
aiweekly: import_aiweekly.aiweekly,
|
|
65
|
+
macrumors: import_macrumors.macrumors
|
|
64
66
|
};
|
|
65
67
|
// Annotate the CommonJS export names for ESM import in node:
|
|
66
68
|
0 && (module.exports = {
|