code for article pfeilbr/puppeteer-playground
learn puppeteer
Puppeteer is a Node library which provides a high-level API to control headless Chrome over the DevTools Protocol. It can also be configured to use full (non-headless) Chrome.
see examples
Twitter • Reddit