DEV Community

A command line application: Scraping dev.to with puppeteer

Damien Cosset on May 19, 2019

Introduction For my InvoiceMaker application, I used Puppeteer to generate a PDF. I quite enjoyed the simplicity of the tool, and to sho...
Collapse
 
david_j_eddy profile image
David J Eddy

Nice article Damien. Loves me some Puppeteer! Checkout the thing I did awhile back, I'd love some feedback as if you are so included. hub.docker.com/r/davidjeddy/docker...

Collapse
 
mk profile image
Mariusz

Shouldn't promises from Promise.all() run sequential (waitForNavigation then click)?

Collapse
 
damcosset profile image
Damien Cosset

Ok, so this is a part that I still have trouble getting my head around. There are some good answers I believe on this issue.

waitForNavigation will only resolve once the navigation has started and completed. So it will resolve after the page.click has completed. If I understood it correctly.

Collapse
 
justwarren profile image
Warren

I'd like to try this pages with SVG