I got this code from pypi:
from phonenumbers import carrier
ro_number = phonenumbers.parse("+40721234567", "RO")
carrier.name_for_number(ro_number, "en")
Output:
'Vodafone'
I am in India. When I write this code for my phone number it works perfectly and shows Airtel. But my project is on finding the carrier of USA phone number +1xxx xxx xxx. When I do this for a USA number it returns a null string because mapping is not done.
Please help me to do this for US numbers.
Should I change my laptop location? I don't know how to do.
Or should I add pycountry?
Please help me.