dms-scrape 0.3.0 → 0.3.1
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/sources/T1/UDNMoney.mjs +3 -3
- package/test.mjs +1 -1
package/package.json
CHANGED
package/sources/T1/UDNMoney.mjs
CHANGED
|
@@ -23,16 +23,16 @@ export function UDNMoney($) {
|
|
|
23
23
|
{
|
|
24
24
|
selector: "section.article-body__editor p",
|
|
25
25
|
value: (el, key) => {
|
|
26
|
-
const sampleKey = this.findIndex(item => item.includes("延伸閱讀"))
|
|
26
|
+
// const sampleKey = this.findIndex(item => item.includes("延伸閱讀"))
|
|
27
27
|
if (!$(el).text().trim() == "") {
|
|
28
28
|
const sample = $(el)
|
|
29
29
|
.text()
|
|
30
30
|
.replace(/\$\(.*/s, "")
|
|
31
31
|
.trim();
|
|
32
32
|
|
|
33
|
-
if (key < sampleKey) {
|
|
33
|
+
// if (key < sampleKey) {
|
|
34
34
|
return sample;
|
|
35
|
-
}
|
|
35
|
+
// }
|
|
36
36
|
|
|
37
37
|
}
|
|
38
38
|
},
|
package/test.mjs
CHANGED
|
@@ -18,7 +18,7 @@ const testLinks = [
|
|
|
18
18
|
|
|
19
19
|
const buggedLinks = ["https://www.eprice.com.tw/mobile/talk/4523/5811558/1/"];
|
|
20
20
|
const testLink = [
|
|
21
|
-
"https://
|
|
21
|
+
"https://money.udn.com/money/story/5612/8219989",
|
|
22
22
|
];
|
|
23
23
|
async function getTestLinks() {
|
|
24
24
|
var response = [];
|