I've been trying to figure out how to use Python for reverse phone lookups. I'm aware that there are alternative methods, but using Python would be ideal. I'm not sure if the method I'm using, called Twilio, is the best one. Can someone let me know if there is a better way? I'm trying to find more specific information, such as names, emails, addresses, IP addresses, locations, and any personal information, but all I have so far is the carrier of a phone number. It would be wonderful if someone could assist me with this small project:)
What I've got so far is
import sys
import os
from twilio.rest.lookups import TwilioLookupsClient
try:
client = TwilioLookupsClient()
phone = raw_input (" Enter The Targets Phone Number: ")
number = client.phone_numbers.get((phone), include_carrier_info=True, )
print(number.carrier['name'])
print(number.carrier['type'])
except:
print ("Error handling phone number")