Saving and scraping a website with Puppeteer. From this article
# 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