Skip to content

pandasx / ReadHtmlOptions

Interface: ReadHtmlOptions ​

Defined in: src/io/html.ts:10

Properties ​

PropertyTypeDescriptionDefined in
attrs?Record<string, string>Keep only tables with these attributes, e.g. { id: 'prices' }.src/io/html.ts:18
decimal?string-src/io/html.ts:21
displayedOnly?booleanSkip elements hidden with style="display:none" (default true).src/io/html.ts:26
encoding?BufferEncoding-src/io/html.ts:29
extractLinks?"all" | "header" | "body" | "footer" | nullReturn [text, href] pairs for cells of 'header', 'body', 'footer' or 'all'.src/io/html.ts:28
header?number | readonly number[] | nullRow(s) to use as the header (default: <thead> rows, else leading rows of <th>).src/io/html.ts:14
indexCol?string | number | readonly (string | number)[]-src/io/html.ts:15
keepDefaultNa?boolean-src/io/html.ts:23
match?string | RegExpKeep only tables whose text matches (string or RegExp, default all).src/io/html.ts:12
naValues?readonly string[]-src/io/html.ts:22
parseDates?readonly string[]-src/io/html.ts:24
skiprows?number | readonly number[]-src/io/html.ts:16
thousands?string | nullThousands separator stripped from numbers (default ',').src/io/html.ts:20

Released under the MIT License.