Track Phone Number Location Using Python.
- Shivam Rohilla
- July 7, 2021
- 3 comments
- 628 Views
<meta name="clckd" content="6301244fb7ed470eb1cd6b8c31d01ac4" />
Hello guys, in this post you will see how to track the phone number location using python, you can find any phone number location in simple steps.
Install the phonenumbers module in your environment
pip install phonenumbers
after that create two python files in which you'll write code and phone number.
so here we go,
Create a num.py file and enter the number
number = "+countrycode-your number or somebody else number"
number = "+91-1234567890"
Create a main.py file
and import the phonenumbers in this file and then import the number which you write in num.py file and then import geocoder and carrier and start writing the code.
#import number from num.py
from num import number
from phonenumbers import geocoder
from phonenumbers import carrier
num = phonenumbers.parse(number, "CH")
service_num = phonenumbers.parse(number, "RO")
after this run this file in your terminal.
after running this command you will see the output like that.
Country Name:- India
Service Provider:- Vodafone
Shivam Rohilla | Python Developer
My social media links