Puppeteer: How do I download a file using chrome headless browser api?

Viewed 5892

Using Puppeteer, how do I get the headless chrome browser to download a file (or make additional http requests and save the response)?

2 Answers

Here's a tool I wrote to download all the resources that a page uses upon load.

This node command-line utility uses a headless browser (Puppeteer) to render a webpage and download all resources it may need. These resources including the original HTML are all saved locally...

https://github.com/stav/wgrep

Related