Hello guys this is Satyam,again back with another awesome blog and in this blog I am going to discuss about a module in Python that is called phonenumbers which can be used find out some information about a given phone number such as the Operator Name and the name of the country in which the number is active.
In order to use these module first of all you have to install it using pip package manager because it's not a standard package so you have to install it separately.Type the following command in your terminal or cmd to install this module.
pip install phonenumber
Python program to get the country name to which phone number belongs:
from phonenumbers import geocoder
phone_number = phonenumbers.parse("Number with country code")
Python program to get the service/network provider name to that phone number
from phonenumbers import carrier
service_provider = phonenumbers.parse("Number with country code")
Buy Siteground Web hosting: