serializer.py
def serialize_dict(elements):
    """Serialize a list of BS4 tags to Python dict
    Keyword Arguments:
    elements : list
    """
    return [
        {
            'name': el.name,
            'attributes': el.attrs,
            'content': el.string,
            'source': str(el),
        } for el in elements
    ]
Serialize a list of BS4 tags to Python dict
    Keyword Arguments:
    elements : list
    
Serialize a list of BS4 tags to Python dict
Keyword Arguments:
elements : list
Serialize a list of BS4 tags to Python dict Keyword Arguments : elements : list
def serialize_dict(elements):
    return [
        {
            'name': el.name,
            'attributes': el.attrs,
            'content': el.string,
            'source': str(el),
        } for el in elements
    ]
def serialize_dict ( elements ) : return [ { 'name' : el . name , 'attributes' : el . attrs , 'content' : el . string , 'source' : str ( el ) , } for el in elements ]
Serialize a list of BS4 tags to Python dict
Keyword Arguments:
elements : list
Serialize a list of BS4 tags to Python dict Keyword Arguments : elements : list
"""Serialize a list of BS4 tags to Python dict
    Keyword Arguments:
    elements : list
    """
elements