Skip to content

Html Constants

This module contains constants used throughout the project.

ContentDataKeys

Represents keys commonly used in web content data.

ErrorMessage

Represents predefined error messages used in the application.

HTMLTags

Represents commonly used HTML tags as constants.

ItemDataKeys

Represents keys used for handling item data.

MetaDataKeys

Represents keys commonly used in metadata for web content.

Structure

Represents the structure of the content.

get_structure(tag) classmethod

Get the structure associated with the given HTML tag.

This class method maps HTML tags to their corresponding structure types and returns the structure associated with the provided HTML tag.

Parameters:

Name Type Description Default
tag str

The HTML tag for which to retrieve the structure.

required

Returns:

Type Description

str or None: The structure associated with the HTML tag, or None if the tag is not mapped.

TableConstants

Represents constants used for table extraction.