async function run(title, url) {
const keyword = [
url
]
//각 화 url 추출
const result = await getUrl(keyword + "")
console.log(result)
//텍스트 추출
const text = await getText(result)
//텍본 생성
fs.writeFile('./textFile' + (title) + '.txt', text, err => {
if (err) {
console.error(err)
return
}
//file written successfully
})
}
// run("사제는 용사였던 아내를 네토라세한다", "https://[Log in to view URL]")
To embed this program on your website, copy the following code and paste it into your website's HTML: