INNER CODE UNIT · Python

HTMLParseError

lefterisloukas/edgar-crawler · download_filings.py:34

    class HTMLParseError(Exception):
        pass


# Import constants from the project's __init__ file
from __init__ import DATASET_DIR, LOGGING_DIR

# Set urllib3 logging level to critical to reduce noise
urllib3_log = logging.getLogger("urllib3")
urllib3_log.setLevel(logging.CRITICAL)

# Instantiate a logger object to use for logging messages throughout this module
LOGGER = Logger(
    name=os.path.splitext(os.path.basename(os.path.abspath(__file__)))[0]
).get_logger()

# Log where the logs are being saved
LOGGER.info(f"Saving log to {os.path.join(LOGGING_DIR)}\n")

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…