track phone number location using python

Solutions on MaxInterview for track phone number location using python by the best coders in the world

showing results for - "track phone number location using python"
Aurora
05 Jan 2017
1# install package:
2pip install phonenumbers
3
4# code:
5import phonenumbers
6from phonenumbers import geocoder
7from phonenumbers import carrier
8
9number = '+XXXXXXXXXX'
10ch_number = phonenumbers.parse(number, "CH")
11print(geocoder.description_for_number(ch_number, "en"))
12service_provider = phonenumbers.parse(number, "RO")
13print(carrier.name_for_number(service_provider, "en"))