Re:Datasette’s new JSON write API: The first alpha of Datase...
by etrepum on Friday December 02, 2022 @07:09PM
(#33838719)
Just a small note on the shot-scraper post (very cool stuff!): You can use Array.from(xs, fn) instead of Array.from(xs).map(fn). Same semantics but it happens in one pass with less garbage.
My new demo also then pipes that data up to Datasette using curl -X POST - this script here: https://github.com/simonw/scrape-hacker-news-by-domain/blob/...