Skip to main content
# Manually generate VCF content for the contacts contacts = [ {"name": "Sajid Zubair Khan (LA)", "phone": "03346968788"}, {"name": "Safdar Hussain (LA)", "phone": "03008763702"}, {"name": "Khadim Hussain (Khakroob)", "phone": "920222"}, {"name": "Mushtaq Shahid Hashmi (Electrical)", "phone": "03336201428, 03057317045"}, {"name": "Malik Farooq Awan (Principal)", "phone": "03007316485"}, {"name": "Naeem Iqbal Arain (Electrical)", "phone": "03006765413"}, {"name": "Mushtaq Ahmed Hashmi (Focal Person)", "phone": "03075475099"}, {"name": "Saeed Uddin Bodla (Electrical)", "phone": "03006765371, 920211"}, {"name": "Muhammad Adil Gujar (Senior Instructor)", "phone": "03076769998"}, {"name": "Muhammad Riaz (Shop Assistant)", "phone": "03078754665"}, {"name": "Matiullah (Senior Clerk)", "phone": "03336208382"}, {"name": "Muhammad Mahmood (Senior Clerk)", "phone": "03008766330"}, {"name": "Muhammad Tariq Bhatti (Clerk)", "phone": "03086276955"}, {"name": "Shakeel Ahmed Shaikh (Senior Clerk)", "phone": "03057305007"}, {"name": "Zafar Iqbal Ahir (Shop Assistant)", "phone": "03026761646"}, {"name": "Kaiser Iqbal Mirza (Shop Assistant)", "phone": "03346949415, 03136705320"}, {"name": "Allah-o-Tahir Durani (Shop Assistant)", "phone": "03030756488, 03024182986"}, ] # Generate VCF content vcf_content = "" for contact in contacts: vcf_content += ( "BEGIN:VCARD\n" "VERSION:3.0\n" f"FN:{contact['name']}\n" f"TEL;TYPE=CELL:{contact['phone']}\n" "END:VCARD\n" ) # Save the content to a file vcf_path = "/mnt/data/contacts.vcf" with open(vcf_path, "w") as vcf_file: vcf_file.write(vcf_content) vcf_path

Comments

Popular posts from this blog