simple-goose3-node
TypeScript icon, indicating that this package has built-in type declarations

0.1.1 • Public • Published

simple-goose3-node

参考 goose3 的简单实现

To install:

npm install simple-goose3-node

example

import { ExtractorHtml } from 'simple-goose3-node'
// or
const { ExtractorHtml } = require('simple-goose3-node')

fetch('https://www.163.com/news/article/IE9IOC75000189FH.html', {
	method: 'GET',
}).then(async resp => {
	const html = await resp.text()
	const result = await ExtractorHtml(html)
	console.log(result)
})

Package Sidebar

Install

npm i simple-goose3-node

Weekly Downloads

1

Version

0.1.1

License

MIT

Unpacked Size

64 kB

Total Files

24

Last publish

Collaborators

  • exaggerated-dream