serializer.py
def serialize_csv(elements):
    """Serialize a list of BS 4 tags to CSV
    Keyword Arguments:
    elements : list
    """
    elements = serialize_dict(elements)

    output = io.StringIO()

    keys = elements[0].keys()

    dict_writer = csv.DictWriter(output, keys, quoting=csv.QUOTE_ALL)
    dict_writer.writeheader()
    dict_writer.writerows(elements)

    return output.getvalue()
Serialize a list of BS 4 tags to CSV
    Keyword Arguments:
    elements : list
    
Serialize a list of BS 4 tags to CSV
Keyword Arguments:
elements : list
Serialize a list of BS 4 tags to CSV Keyword Arguments : elements : list
def serialize_csv(elements):
    elements = serialize_dict(elements)
    output = io.StringIO()
    keys = elements[0].keys()
    dict_writer = csv.DictWriter(output, keys, quoting=csv.QUOTE_ALL)
    dict_writer.writeheader()
    dict_writer.writerows(elements)
    return output.getvalue()
def serialize_csv ( elements ) : elements = serialize_dict ( elements ) output = io . StringIO ( ) keys = elements [ 0 ] . keys ( ) dict_writer = csv . DictWriter ( output , keys , quoting = csv . QUOTE_ALL ) dict_writer . writeheader ( ) dict_writer . writerows ( elements ) return output . getvalue ( )
Serialize a list of BS 4 tags to CSV
Keyword Arguments:
elements : list
Serialize a list of BS 4 tags to CSV Keyword Arguments : elements : list
"""Serialize a list of BS 4 tags to CSV
    Keyword Arguments:
    elements : list
    """
elements