Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/yarnaimo/html-content-extractor

Extract content from web page
https://github.com/yarnaimo/html-content-extractor

Last synced: about 1 month ago
JSON representation

Extract content from web page

Awesome Lists containing this project

README

        

# html-content-extractor

Extract main text content from web page

> This library only works on **rendered HTML document** since it extracts contents based on the visual size of the elements.

## Install

```sh
npm i -S html-content-extractor
# or
yarn add html-content-extractor
```

## Usage

```ts
import { extractMainContent } from 'html-content-extractor'

extractMainContent() // => string | undefined
```