xyzbot

0.0.7 • Public • Published

XYZBOT

Saving and scraping a website with Puppeteer. From this article

Usage

# install
$ npm install --global xyzbot

# start fetch and will fetch resources to the "output" dir.
$ xyzbot -u https://example.com

# help
Usage: xyzbot [options]

Options:
  -v, --VERSION                     output the version number
  -u, --url <string>                [required] website url you want to fetch
  -wtc, --wait-time-close <number>  [optional] wait time to close the browser when fetching, default 30s
  -h, --help                        display help for command

使用方式

# 安装
$ npm install --global xyzbot

# 下载资源,下载的资源会存到“output”目录。
$ xyzbot -u https://example.com

# 帮助信息
Usage: xyzbot [options]

Options:
  -v, --VERSION                     版本号
  -u, --url <string>                [必须] 需要下载资源的网站链接
  -wtc, --wait-time-close <number>  [optional] 下载时间, 默认:30s
  -h, --help                        display help for command

Readme

Keywords

Package Sidebar

Install

npm i xyzbot

Weekly Downloads

2

Version

0.0.7

License

MIT

Unpacked Size

5.54 kB

Total Files

5

Last publish

Collaborators

  • cleam