Sei sulla pagina 1di 1

Approach To Be Used For The Extraction Of Contact Details

Of Numbers from TrueCaller


1. First step is to get the contacts of all the numbers. That can be
done by generating a csv file of the contacts through Google Contacts
(in case they are backed up with Google).
2. In the python script, these csv file is read using pandas and the
contacts are stored inside a pandas dataframe.
3. Now, by using the selenium package in Python, using webdriver, the
browser needs to be opened up and we need to log into our truecaller
id by using the login credentials.
4. Now, we can apply a for loop and search for all the numbers in the
contact list using the
browser.get(‘https://www.truecaller.com/in/<number>’) method for each
of the numbers in the pandas dataframe.
5. In the same for loop, the email ids for all these numbers can be
scraped and stored inside a variable using the beautiful soup library
in Python. Therefore, for all the numbers, the scraping can be done.

Potrebbero piacerti anche