Link to convenience util based on OP's manual method.
Docker-based for portability.
Although anyone Linux literate can probably decipher it to figure out how to run it locally/without Docker too.
It uses Thorium Reader, like edent's manual extraction method (although headlessly), which I guess has its pros and cons.
e.g.
con: bloat/difficulty to embed/integrate in existing tools
pro: so long as Edrlabs release Thorium as a partially open source, Electron-based app can probably fairly easily be patched for whatever future updates they make (within reason of course).