Get Any Phone Number Details Using phonenumbers
Python Library
*1- Import Library : *
import phonenumbers
*2- import modules *
from phonenumbers import carrier , geocoder , timezone
*3- Prompt User *
Number = input('Please Enter Your Number With Country Code : ')
*4- Parse User Input *
Number = phonenumbers.parse(Number)
*5- Print Timezone *
print(timezone.time_zones_for_number(Number))
*6-Print Phone Number Carrier : *
print(carrier.name_for_number(Number,"en"))
*6-Print Phone Number Country : *
print(geocoder.description_for_number(Number , "en"))
*7-Check Phone Number Validity : *
print('Valid Mobile Number : ',phonenumbers.is_valid_number(Number))
Top comments (0)