Skip to content

Commit

Permalink
Update eval script
Browse files Browse the repository at this point in the history
  • Loading branch information
ndaidong committed Feb 9, 2025
1 parent 0884cc1 commit 2868193
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions eval.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ const extractFromFile = async (fpath) => {
const html = readFileSync(fpath, 'utf8')
const art = await extractFromHtml(html)
console.log(art)
if (art) {
const slug = slugify(art.title)
writeFileSync(`evaluation/${slug}.html`, art.content, 'utf8')
}
} catch (err) {
console.trace(err)
}
Expand Down

0 comments on commit 2868193

Please sign in to comment.