This repo is a python package that provides a comprehensive list of free email domains from around the world. This package is designed to simplify the process of checking if an email address belongs to a free email provider.
You can install free-email-domains via pip:
pip install free-email-domains
After installing the package, you can use it in your Python projects as follows:
>>> from free_email_domains import whitelist
>>> 'gmail.com' in whitelist
True
from free_email_domains import whitelist as free_domains
# Check if an email domain is free
email = "example@sample.com"
if email.split('@')[1] in free_domains:
print("This is a free email domain.")
else:
print("This is not a free email domain.")
Contributions are welcome! If you want to add or update any free email domains or include wrappers for any other languages, feel free to submit a pull request.
This package is licensed under the MIT License. See the LICENSE file for details.
This package utilizes data from HubSpot, which contains a compiled free email domain list.
If you encounter any issues or have suggestions for improvement, please report them on the GitHub issue tracker.