MCPcopy
hub / github.com/extractus/article-extractor / extractFromUrl

Function extractFromUrl

eval.js:15–28  ·  view source on GitHub ↗
(url)

Source from the content-addressed store, hash-verified

13}
14
15const extractFromUrl = async (url) => {
16 try {
17 console.time('extraction')
18 const art = await extract(url)
19 console.log(art)
20 if (art) {
21 const slug = slugify(art.title)
22 writeFileSync(`evaluation/${slug}.html`, art.content, 'utf8')
23 }
24 console.timeEnd('extraction')
25 } catch (err) {
26 console.trace(err)
27 }
28}
29
30const extractFromFile = async (fpath) => {
31 try {

Callers 1

initFunction · 0.85

Calls 1

extractFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…