Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions BasicPythonScripts/Tracking Phone Number/Images/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Here images og input and output are there.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
21 changes: 21 additions & 0 deletions BasicPythonScripts/Tracking Phone Number/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
Title : Tracking Phone Number

Description: Here we will get the location of phonenumber by their country or area code .


List out the libraries imported : phonenumber

Setup instructions: Here we just need to have the phone number for which we need to find location it had to be given in input and we will get the location in output.


Detailed explanation of script: Here by using phonenumber library we can get location of phone number by using the area/city/country code.


Output:
![input(phone)](https://user-images.githubusercontent.com/71593494/121997379-eb039a80-cdc7-11eb-9eed-9e803274da83.png)
![output(phone)](https://user-images.githubusercontent.com/71593494/121997392-edfe8b00-cdc7-11eb-9d7c-53f54804c7b6.png)



Author:
Neel Shah
1 change: 1 addition & 0 deletions BasicPythonScripts/Tracking Phone Number/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Libraries used: phonenumber
16 changes: 16 additions & 0 deletions BasicPythonScripts/Tracking Phone Number/tracking_phone_number.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import phonenumbers
from phonenumbers import geocoder

#taking different phone numbers as input
phone_numbers1 = phonenumbers.parse("+919427587980")
phone_numbers2 = phonenumbers.parse("+4930901820")
phone_numbers3 = phonenumbers.parse("+13478439904")

#getting the location of different numbers
print(geocoder.description_for_number(phone_numbers1, "en"))
print(geocoder.description_for_number(phone_numbers2, "en"))
print(geocoder.description_for_number(phone_numbers3, "en"))