Extracting web page content using Readability.js and shot-scraper
til.simonwillison.net
til.simonwillison.net
shot-scraper javascript https://simonwillison.net/2022/Mar/24/datasette-061/ "
async () => {
const readability = await import('https://cdn.skypack.dev/@mozilla/readability');
return (new readability.Readability(document)).parse();
}"
To first install shot-scraper, run: pip install shot-scraper
shot-scraper installthe tech that powers shot-scarper
In the past, I've had good success with using GoOse. There are implementations in Scala as well as Golang.