If I import a vcard with vobject like this:
with open(some_file_containing_a_vcard,
                  "r" , encoding="utf-8") as fd:
            vcard_content = vobject.readOne(fd.read(),
                                            ignoreUnreadable=True)
How fo I get all telephone numbers or emails, if there are more than one provides by the vcard?
I only found:
vcard_content.tel.value
vcard_content.email.value
...but this only returns the first of each.
As I dived into the code, it seems the entities are created as clases. So a vcard's attribute "TEL" gets created as "tel". What, if I have a cell and a work phone number?
I am totally stuck :-)
                        
There are attributes named
tel_listandemail_listthat should provide the other entries you're looking for.Elements in these lists act just like "tel" and "email", and each also has a
.valueand.type_paramthat you might want to check to disambiguate.