Whitepyges is an unoficial Python client library for retrieving public information from Whitepages.com
This software is provided for personal and educational use only. You are responsible for ensuring your use of this software complies with all applicable laws and third-party Terms of Service. Authors/Contributors do not condone or support the violation of any website's terms. Use at your own risk.
- Person lookup by name and location
- Phone number lookup by number alone
- Address information
- Carrier information for phones
To install Whitepyges, use pip:
pip install whitepygeslocally:
git clone https://github.com/will-hellinger/whitepyges.git
cd whitepyges
pip install .Here is a basic example of how to use Whitepyges:
import whitepyges
person: whitepyges.Person = whitepyges.Person(first_name='John', last_name='Doe', state="WA")
phone: whitepyges.Phone = whitepyges.Phone(phone_number='123-456-7890')
address: whitepyges.Address = whitepyges.Address(street='123 Test Street', city='New York', state='NY')
person_info = person.search()
phone_info = phone.search()
address_info = address.search()Note: All example responses have their info changed
Person:
[
{
"name": "Jon Doe",
"givenName": "Jon",
"familyName": "Doe",
"description": "Jon Doe in their 70s, currently living in Example, WA",
"url": "https://www.whitepages.com/name/Jon-Doe/Example-WA/random_letters",
"address": [
{
"@type": "PostalAddress",
"streetAddress": "123 St",
"addressLocality": "Example",
"addressRegion": "WA",
"addressCountry": "US"
}
],
"telephone": "(123) 456-7890",
"relatedTo": []
},
{
"name": "Jon Doe",
"givenName": "Jon",
"familyName": "Doe",
"description": "Jon Doe in their 40s, currently living in Example-2, WA",
"url": "https://www.whitepages.com/name/Jon-Doe/Example-2-WA/random_letters2",
"address": [
{
"@type": "PostalAddress",
"streetAddress": "123 Ave",
"addressLocality": "Example-2",
"addressRegion": "WA",
"addressCountry": "US"
}
],
"telephone": "(123) 456-7890",
"relatedTo": []
}
]Phone:
{
"spam_info": "LOW SPAM RISK",
"state": "Washington",
"cities": "Example, Example-2, Examples 3",
"area_code": "123",
"url": "https://www.whitepages.com/phone/1-123-456-7890"
}Address:
[
{
"name": "Jon Doe",
"url": "https://www.whitepages.com/name/Jon-Doe/Example-WA/random_numbers",
"age": "22"
},
{
"name": "Jon Doe-2",
"url": "https://www.whitepages.com/name/Jon-Doe-2/Example-WA/random_numbers-2",
"age": null
}
]Contributions are welcome! Please fork the repository and submit pull requests.
When contributing, please follow these formatting guidelines:
- Format your code with Black.
- Ensure all public methods and classes have docstrings.
- Write unit tests for new features and bug fixes.
- Use meaningful commit messages.
By adhering to these guidelines, you help maintain the readability and quality of the codebase.
For any questions or suggestions, please open an issue on GitHub.
