INNER CODE UNIT · Python
handle_data
lefterisloukas/edgar-crawler · extract_items.py:84
def handle_data(self, data: str) -> None:
"""
Append the raw data to the list.
This method is called whenever raw data is encountered. In the context of
this class, we just append the data to the fed list.
Args:
data (str): The data encountered.
"""
self.fed.append(data)
def get_data(self) -> str:
"""
Join the list to get the data without HTML tags.
Returns:
str: The data as a single string.