function for checking tr relevance

This commit is contained in:
2021-11-24 22:28:33 +01:00
parent 9adad5dba1
commit 1e0410a254
2 changed files with 17 additions and 13 deletions

View File

@ -29,16 +29,16 @@ def extract_end_dates(soup: BeautifulSoup) -> tuple[str]:
pass
def find_relevant_table_rows(soup: BeautifulSoup) -> ResultSet:
def is_relevant_table_row(tr: Tag) -> bool:
"""
Returns the table rows containing the data of interest.
Returns True if the item in the table row is marked as relevant. Additionally warns when an item is unknown.
"""
pass
def convert_number(num_str: str) -> int:
def find_relevant_table_rows(soup: BeautifulSoup) -> ResultSet:
"""
Takes a string like e.g. "420.69M" and returns 42069000000.
Returns the table rows containing the data of interest.
"""
pass