#At first you need to install "phonenumbers" module
#---------------------------Installation--------------------------
#Linux---->pip3 install phonenumbers
#Windows-->pip install phonenumbers
import phonenumbers
#geocoder--->For location of the number
from phonenumbers import geocoder
from phonenumbers import carrier
from phonenumbers import timezone
phonenumber = input("Enter your phone number with country code: ")
phonenumber = "+" + phonenumber
# print(phonenumber)
contact_number = phonenumbers.parse(phonenumber)
print(f"This number is belong to {geocoder.description_for_number
(contact_number,'en')}") #'en' for english language
print(f"Carrier of this number is {carrier.name_for_number(contact_nu
mber,'en')}")
print(f"Timezone of this number is {timezone.time_zones_for_number(co
ntact_number)}")
Comments
Post a Comment
If you've any doubts, please let me text