@jswork/pptr-html
TypeScript icon, indicating that this package has built-in type declarations

1.2.0 • Public • Published

pptr-html

Get html by puppeteer.

version license size download

installation

npm install -S @jswork/pptr-html

usage

import pptrHtml from '@jswork/pptr-html';

pptrHtml('https://github.com/afeiship').then(res => {
  console.log(res);
});

options

{ headless: true, closeable: true, userAgent: nx.randomUa(), selector: null };

install puppeteer

# use taobao source
PUPPETEER_DOWNLOAD_HOST=https://npm.taobao.org/mirrors npm i -D puppeteer

# or skip download
PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true npm i puppeteer

license

Code released under the MIT license.

Readme

Keywords

none

Package Sidebar

Install

npm i @jswork/pptr-html

Weekly Downloads

31

Version

1.2.0

License

MIT

Unpacked Size

14.4 kB

Total Files

7

Last publish

Collaborators

  • afeiship