top of page
Search
Writer's pictureGavin Thoppil

CODE TO CHECK THE SERVER LOCATION USING PYCHARM:

STEP 1: INSTALL PYCHARM

STEP 2: TYPE " PIP INSTALL PHONENUMBERS " IN TERMINAL

STEP 3: CODE>>

import phonenumbers
from test import number
#to print the location
from phonenumbers import geocoder
c = phonenumbers.parse(number, "CH")
print(geocoder.description_for_number(c, "en"))
#to print the sim
from phonenumbers import carrier
service_nmber= phonenumbers.parse(number, "RO")
print(carrier.name_for_number(service_nmber, "en"))



3 views0 comments

Comments


Post: Blog2_Post
bottom of page