Bases: astropy.io.ascii.BaseReader
Read and write HTML tables.
In order to customize input and output, a dict of parameters may be passed to this class holding specific customizations.
htmldict : Dictionary of parameters for HTML input/output.
- css : Customized styling
If present, this parameter will be included in a <style> tag and will define stylistic attributes of the output.
- table_id : ID for the input table
If a string, this defines the HTML id of the table to be processed. If an integer, this specificies the index of the input table in the available tables. Unless this parameter is given, the reader will use the first table found in the input file.
- multicol : Use multi-dimensional columns for output
The writer will output tuples as elements of multi-dimensional columns if this parameter is true, and if not then it will use the syntax 1.36583e-13 .. 1.36583e-13 for output. If not present, this parameter will be true by default.
Initialize classes for HTML reading and writing.
Methods Summary
read(table) | Read the table in HTML format and return a resulting Table. |
write(table) | Return data in table converted to HTML as a list of strings. |
Methods Documentation
Read the table in HTML format and return a resulting Table.
Return data in table converted to HTML as a list of strings.