Create app to generate a daily painting in html (see codepen)
- 10 . clip some copy from NYT to accompany the html painting
- 20 . publish a screenshot on your favorite img stream
node src/index.js -h
node src/index.js -V
Things you need to install and how to install them
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.3/install.sh | bash # install nvm (node version manager)
nvm install 25 # install node v25
Automated screenshots with puppeteer
npm i -g puppeteer
npm install
use chancejs on puppeteer projects install chance-cli
use npm pageres to create full page screenshots 6 ♦
npm install pageres-cli
pageres www.charlesverraest.be 1024x768 1366x768 #2 screenshots
pageres www.standaard.be/ 1024x768 1366x768
Lab pageres > using pageres api
update pageres:
npm update -g pageres
Using a list of screen resolutions
pageres <url> < screen-resolutions.txt
SAMPLE:
pageres 891.be 1024x768 1366x768
Get a screenshot (be patient)
node --unhandled-rejections=strict src/index.js
We use SemVer for versioning. For the versions available, see the tags on this repository.
Tankred
- Hat tip to On Kawara
- March 22, 2020
- how to use functions in puppeteer?
- Getting started with puppeteer
- Explore charlatan