Skip to content

Commit 2868193

Browse files
committed
Update eval script
1 parent 0884cc1 commit 2868193

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
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
}

0 commit comments

Comments
 (0)