Skip to content

Commit e877084

Browse files
authored
Merge pull request #415 from extractus/8.0.17
v8.0.17
2 parents 197a2b5 + 2868193 commit e877084

File tree

2 files changed

+12
-8
lines changed

2 files changed

+12
-8
lines changed

eval.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@ const extractFromFile = async (fpath) => {
3232
const html = readFileSync(fpath, 'utf8')
3333
const art = await extractFromHtml(html)
3434
console.log(art)
35+
if (art) {
36+
const slug = slugify(art.title)
37+
writeFileSync(`evaluation/${slug}.html`, art.content, 'utf8')
38+
}
3539
} catch (err) {
3640
console.trace(err)
3741
}

package.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"version": "8.0.16",
2+
"version": "8.0.17",
33
"name": "@extractus/article-extractor",
44
"description": "To extract main article from given URL",
55
"homepage": "https://github.com/extractus/article-extractor",
@@ -32,16 +32,16 @@
3232
"dependencies": {
3333
"@mozilla/readability": "^0.5.0",
3434
"bellajs": "^11.2.0",
35-
"cross-fetch": "^4.0.0",
36-
"linkedom": "^0.18.5",
37-
"sanitize-html": "2.13.1"
35+
"cross-fetch": "^4.1.0",
36+
"linkedom": "^0.18.9",
37+
"sanitize-html": "2.14.0"
3838
},
3939
"devDependencies": {
4040
"@types/sanitize-html": "^2.13.0",
41-
"eslint": "^9.14.0",
42-
"globals": "^15.12.0",
43-
"https-proxy-agent": "^7.0.5",
44-
"nock": "^13.5.5"
41+
"eslint": "^9.20.0",
42+
"globals": "^15.14.0",
43+
"https-proxy-agent": "^7.0.6",
44+
"nock": "^14.0.1"
4545
},
4646
"keywords": [
4747
"article",

0 commit comments

Comments
 (0)