how to get all the attributes of an element in python code example Example: python get attributes of object getattr(object, 'attribute_name')