Python script to get location and service provider name of a phone number
- Create a .env file and add variables from .env.example file already present in the repo.
- Within double quotes, add the number you want to locate (with country code) in NUMBER field in the .env file.
- Go to https://opencagedata.com/ and create a free account.
- You will get a unique API key, copy and paste it in KEY field (within double quotes) in the .env file.
- Run main.py. You will get the country name, service provider name and coordinates as output.
- Also a html file will be created. Open it using any web browser to view the location on the map.