simonw / datasette

An open source multi-tool for exploring and publishing data
https://datasette.io
Apache License 2.0
9.41k stars 671 forks source link

Every datasette plugin on the ecosystem page should have a screenshot #507

Open simonw opened 5 years ago

simonw commented 5 years ago

https://github.com/simonw/datasette/blob/master/docs/ecosystem.rst

simonw commented 5 years ago

I need to find a good tool for taking screenshots on OSX that are reliably the same dimension across multiple sessions. Maybe in Firefox?

psychemedia commented 5 years ago

Chrome and Firefox both support headless screengrabs from command line, but I don't know how parameterised they can be?

rixx commented 4 years ago

Headless Chrome and Firefox via Selenium are a solid choice in my experience. You may be interested in how pretix and pretalx solve this problem: They use pytest to create those screenshots on release to make sure they are up to date. See this writeup and this repo.

simonw commented 4 years ago

I have a pattern for creating screenshots using Puppeteer running in a GitHub Action now, see https://simonwillison.net/2020/Sep/3/weeknotes-airtable-screenshots-dogsheep/#weeknotes-2020-09-03-social-media-cards-tils