Tracking Location With Python

ยท

1 min read

This Article is for Educational Purposes Only.

If the piece of Information is misused I am not responsible for it.

As Cyber Crimes increases the mysteries of stolen phone increase and there is a way possible to track your phones. With help of libraries of python

In the following code, you have to generate your API key

import phonenumbers
import  opencage
from myphone import number

from phonenumbers import geocoder

pepnumber = phonenumbers.parse(number)
location = geocoder.description_for_number(pepnumber, "en")
print(location)

from phonenumbers import carrier
service = phonenumbers.parse(number)
print(carrier.name_for_number(service, 'en'))

from opencage.geocoder import OpenCageGeocode

key = # add double quotes and type ur API key and remove this comment
geocoder = OpenCageGeocode(key)
query = str(location)
results = geocoder.geocode(query)
print(results)

You can create a python file named myphone and create a variable 'number' Like This-

number = #your country code like America country code is +1 and then your number
ย