uh hello guys welcome to this video so
in this video I will show you how to
track uh the phone number inside your
Python so you can actually track uh the
SIM card details the
carrier all company as well using the
phone number so here you just need to
specify the 10digit mobile number
alongside with the country code and then
this module inside Python which is
called as phone numbers will actually
tell you the information regarding that
mobile number such as the SIM card
details and the carrier information as
well so let me show you a very simple
example i input my own number right here
if you see that and as soon as I run the
script here it will
actually save all this information
inside a JSON file so you will see SIM
card details saved to SIM details.json
so it actually creates a file right here
sim details.json and as soon as you open
this file it will return you the
information regarding that phone number
such as the mobile
number if it's a valid number or not so
it's a valid number the region belongs
to India the carrier is ATAL company and
the time zone also returns Asia Kolkata
so you can similarly input any number
any valid number 10 digit number and it
will return out these details and
creates a simple JSON file every time
you run this Python script so you can uh
let me show you the module here uh if
you go to this
website just search for this Python
module which is phone numbers it's a
very famous module which
returns the SIM card details you can
track your phone number every detail so
just install this module and after
installing it let me show you how to use
it so the full script is given in the
description of this video so if you need
to get the full script the link is given
in the description so first of all we
import the phone numbers module then we
also need to import the JSON module for
saving the information in a JSON file
and then from this module from phone
numbers we need to import the geocoder
and the
carrier after that we also need to
import the time zone as well to get all
this information after that we specify
the
number which should include your country
code as well so + 9 for India so then we
input in input my
number and then after that first of all
we need to parse this
number for parsing this number we have
this function which is parse so here we
will simply pass your number it will
pass your number and then for getting
the details we need to specify a object
sim data and inside this object we will
specify various properties first of all
your number second of all the if it's a
valid number or not so we have this true
or
false
so this contains phone numbers dot is
valid you'll see inside this drop-down
so this contains all these functions
that this module contains so we have
this is valid number so it will return
either true or false depending upon
whether this number exist or not so this
is really important to
do whether it's a real number or not so
in this way you can detect that after
that now to get the region information
so this geooder module from this we will
call this and then it contains this
function which is
description for number so now it will
return you the address of this number
where this number is located so
here we need to put get the information
in English language and then then we
also can actually get the information
regarding which company this mobile
number belong to which is the
carrier so carrier name for number so it
will return you the number of the
company so parse number again English
language and then lastly we can even get
the time zone so which time zone this
number belongs to so we for this we use
the time zone information which is time
zone for
number that's all so this contains this
five information number you can see now
we just need to save this information in
a JSON file for saving it we simply use
the open function and we create a simple
file which is sim
details dojson and open it in write
mode and then we simply call this
function json dot
dump like this and then we can print out
a statement that sim card details saved
to this file so now what I will do I
will delete this file and uh again run
the script so as soon as I run the
script you will see on the left hand
side the file will be created and you
can check this for any number you can
see again it
returns let me change the number here i
provide any other random
number it just need to be 1 2 3 4 5 6 7
8 9 10
so again you will run
this you will
see now you will see the carrier is
different because it's a different
number so you can see the script works
for all the numbers you can check any
number in the world just put the country
code and then the 10digit mobile number
and then it will return you the
information regarding this number so I
just tested this module this module
works every time so you can definitely
install it and start using it and if you
need the script the link is given in the
description so thank you very much for
watching this video uh please hit that
like button subscribe the channel and
also check out my website
freemediattools.com
uh which contains thousands of tools