fetch-site
Fetch website with all the resources/responses/requests to local files, using puppeteer.
Install
CLI
npm install -g fetch-site
Module
npm install --save fetch-site
Usage
CLI Usage
$ fetch-site url [options] Options--version Show version info--help Show help info--no-headless, -h Set {headless: false}
Above example will open the url with {headless:false}
, wait until networkidle0
, and wait for page close to exit, using UAString "My-UA-String"
.
Module Usage
const fetchSite =
Then check the folder baidu.com
for results.