sec_parser.utils.bs4_.table_check_data_cell

Functions

get_single_table(→ bs4.Tag)

check_table_contains_text_page(→ bool)

check_table_contains_text_page determines whether the given bs4 tag

is_page_data_cell(→ bool)

is_page_data_cell determines whether the given text expresses the

Module Contents

sec_parser.utils.bs4_.table_check_data_cell.get_single_table(bs4_tag: bs4.Tag) bs4.Tag
sec_parser.utils.bs4_.table_check_data_cell.check_table_contains_text_page(bs4_tag: bs4.Tag) bool

check_table_contains_text_page determines whether the given bs4 tag is a table of contents.

Checks whether one of the table’s <td> tags (data cells) contains the text “page”.

Returns true if there exists at least one <td> tag with the text “page”, otherwise the function returns false.

sec_parser.utils.bs4_.table_check_data_cell.is_page_data_cell(data_cell_text: str) bool

is_page_data_cell determines whether the given text expresses the word “page”.

Returns true if the given text expresses the word “page”, otherwise the function returns false.