parseLibgenBooks
Import from: @xbbg/xnews, @xbbg/xnews/parsers
parseLibgenBooks(
html,options):LibgenPage
Defined in: src/sources/libgen.ts (declaration: sources/libgen.d.ts:125)
Parses a result table into coerced rows. Pure: fixture HTML in, rows out.
Throws a config-coded XnewsFetchError when the document contains no recognizable result table at all, because that means the layout moved and a silent empty array would read as "no matches".
Parameters
html
string
