get_resource_key method

On this page

get_resource_key

Returns unique identifier for the cache entry that represents Resource object.

def get_resource_key(cls, page_number, resource):
    ...
Parameter Type Description
page_number int The number of the page.
resource Resource The HTML resource.

Returns: str: Unique identifier for the cache entry that represents Resource object.

Raises Description
ValueError If page_number is less than or equal to zero, or if resource is None.

See Also

On this page