Skip to content

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

options ​

LibgenParseOptions

Returns ​

LibgenPage

Last updated:

xbbg is independent open-source software and is not affiliated with, endorsed by, sponsored by, or approved by Bloomberg Finance L.P.