rssguard/resources/scripts/article-extractor/extract-article.mjs
2024-04-22 14:37:49 +02:00

11 lines
No EOL
223 B
JavaScript

import { extract } from '@extractus/article-extractor'
const input = process.argv[2];
try {
const article = await extract(input);
console.log(JSON.stringify(article));
}
catch (err) {
console.error(err);
}