Skip to main content

Unofficial Python client for Whitepages

Project description

Whitepyges

image

Art by @stawbeby

Whitepyges is an unoficial Python client library for retrieving public information from Whitepages.com

⚠️ Legal Disclaimer ⚠️

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.

What works

  • Person lookup by name and location
  • Phone number lookup by number alone
  • Address information

What doesnt work

  • Carrier information for phones

Installation

To install Whitepyges, use pip:

pip install whitepyges

locally:

git clone https://github.com/will-hellinger/whitepyges.git
cd whitepyges
pip install .

Usage

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()

Responses

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
    }
]

Contributing

Contributions are welcome! Please fork the repository and submit pull requests.

Formatting

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.

Contact

For any questions or suggestions, please open an issue on GitHub.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

whitepyges-0.5b0.tar.gz (13.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

whitepyges-0.5b0-py3-none-any.whl (12.1 kB view details)

Uploaded Python 3

File details

Details for the file whitepyges-0.5b0.tar.gz.

File metadata

  • Download URL: whitepyges-0.5b0.tar.gz
  • Upload date:
  • Size: 13.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for whitepyges-0.5b0.tar.gz
Algorithm Hash digest
SHA256 38e371a9ffd07fd80e7b218e9eed12a101d785f19ca741ac361bf7399a604a33
MD5 790cb5d8022579d6a3fa7209bda907d6
BLAKE2b-256 bfd9f56d8fc8fec11a7810e9fef733b8e9ea9114ab38bd18b6adf977e56702c9

See more details on using hashes here.

Provenance

The following attestation bundles were made for whitepyges-0.5b0.tar.gz:

Publisher: publish.yml on Will-Hellinger/whitepyges

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file whitepyges-0.5b0-py3-none-any.whl.

File metadata

  • Download URL: whitepyges-0.5b0-py3-none-any.whl
  • Upload date:
  • Size: 12.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for whitepyges-0.5b0-py3-none-any.whl
Algorithm Hash digest
SHA256 513c92b9a9cfdefa9e4fb98b64cc040bbd1826e51f71427f94749b51e15bb576
MD5 db136f2d2299158dd55f7449bd91b484
BLAKE2b-256 039e95b69d5373942b1dc6c0edb0474399b592a5ec568a8acc09b5340be013df

See more details on using hashes here.

Provenance

The following attestation bundles were made for whitepyges-0.5b0-py3-none-any.whl:

Publisher: publish.yml on Will-Hellinger/whitepyges

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page