web-to-text

1.0.3 • Public • Published

web-to-text

Node package to scrape content from a web url and convert it into text. Great for language models like ChatGPT.

Alt text

Installation

npm install web-to-text

Usage

const getText = require('web-to-text')

const getTextFromURL = async url => {
  const result = await getText(url)
  console.log(result)
}

getTextFromURL('https://example.com');

// EXAMPLE DOMAIN
// This domain is for use in illustrative examples in documents. You may use this domain in literature without prior coordination or asking for permission.
// More information... [https://www.iana.org/domains/example]

Package Sidebar

Install

npm i web-to-text

Weekly Downloads

11

Version

1.0.3

License

MIT

Unpacked Size

4.31 MB

Total Files

5

Last publish

Collaborators

  • ianscott313