def _get_element_attrs(element, attrs):
    """Get the value of an attribute from an element

    Args:
        element (lxml.html.HtmlElement): dom element to be parsed
        attrs (list): Attributes to check

    Returns:
        dict: keys being the name of the attribute

    """
    result = {}
    for attr in attrs:
        result[attr] = element.get(attr)
    return result
