python reverse phone lookup with twilio

0 votes

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")
Nov 22 in Python by sarit
• 300 points
20 views

No answer to this question. Be the first to respond.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.

Related Questions In Python

0 votes
1 answer

How can I lookup hostname using the IP address with a timeout in Python?

Good question. I actually was stuck with ...READ MORE

answered Feb 6, 2019 in Python by Nymeria
• 3,560 points
1,771 views
0 votes
1 answer

How to perform web scraping with python?

Hey, there are various libraries used in ...READ MORE

answered Apr 20, 2018 in Python by aayushi
• 750 points
1,331 views
+1 vote
2 answers

Measuring the distance between pixels on OpenCv with Python

You can try this: Mat pts1(nPts, 1, CV_8UC2), ...READ MORE

answered Aug 24, 2018 in Python by Omkar
• 69,210 points
9,418 views
0 votes
1 answer

Reverse a string in Python

How about: >>> 'hello world'[::-1] 'dlrow olleh' This is ...READ MORE

answered Aug 1, 2018 in Python by Priyaj
• 58,100 points
279 views
0 votes
1 answer

Create an empty list in python with certain size

Try this instead: lst = [None] * 10 The ...READ MORE

answered Aug 2, 2018 in Python by bug_seeker
• 15,530 points
26,854 views
+1 vote
1 answer

Understanding Python super() with __init__() methods

It's been noted that in Python 3.0+ ...READ MORE

answered Aug 28, 2018 in Python by Priyaj
• 58,100 points
3,226 views
+1 vote
1 answer

How to authenticate and embed Tableau Rest API using Python 2.7

Your .format() call is creating a bad ...READ MORE

answered Jul 19, 2018 in Tableau by Atul
• 10,230 points
1,970 views
0 votes
1 answer

Section postgresql not found in the database.ini file

Python doesn't know what $FILEDIR is. Try an absolute path ...READ MORE

answered Oct 3, 2018 in Python by Priyaj
• 58,100 points
2,238 views
0 votes
1 answer

Iterating over dictionaries using 'for' loops

key is just a variable name. for key ...READ MORE

answered Oct 8, 2018 in Python by SDeb
• 13,300 points
569 views
0 votes
1 answer

Conflicting dependencies of pypyodbc and blpapi

I figured out that pypyodbc only works ...READ MORE

answered Oct 9, 2018 in Python by Priyaj
• 58,100 points
374 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP