epurifier 0.1.1
A email verifier for csv files

# Email Purifier

[![KWoC 2018](https://img.shields.io/badge/KWoC-2018-0078D6.svg?longCache=true&logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAGbElEQVRYhdWWa1BTZxrHH7W1yw4qYcMtIk25lOUWkMgCEhMVq0XQKngDrKy3tkMrVNdxRcssVllbW6e1Wm29tSrdWC8UkUKgBEuuJzn3oLYf2moHrcsGoSoGKcl59kNYCnWcJZp2ps/Mf94vZ+b3O+/znPc9AL/DGg0gHicKl4dNiJRH+EbIAgHkj/8mZFG4fII4OmN+ULxiT0i8UhOSoLoQHK9SBycoXx4XPSX6V4cHxWeUhchUX0tkql6JTOWSyFQuSaKqXyJT2YMTVKf9I1PTAGC09+kBcb6BsdOWPynPvBKWnImhSTOGZdLkmRiWnOkIkamOjQ9PivI2ftRTqXOfyS4sNr20abtz9YZynLNsLUb8ZTZOmjwT0+fm4/LiTfjixgpcvGZ9Z6wip2JCWILIqwbpcwtzPjj2afv1Gx3CvzvsWK/V4YzcIoxV5OC7B49j+/Ub+J/Om9h4Qd//TN6KjwF8A7wqkDInP27voSq6w37T1XuvDxu0Oly0+lXMLnwJ9x6uwq7uH/FOTw+e0zT3Tp2zcAcA+HhVQCKfLs5dXao+fb6xz2BhsKzyHdz+zgeo/qweS8vfwHOaFtQRlFD6WqV9UuyUVQAwxqsCEDw5IHnW4uP7jv7r3pX2a1h1tg637T6Ar+3ah2U730Pu0teoI2ghd2XptaCY1GXehYeG+gQlqNZKZNOvTV9YJOz/SI1GK4smisdWgkYzbUPNBSOWbP0nRqVl9QXFTzvhJ02SAsCoh2aeOnVqjF6vD29p0Sdu3rE7L3PRSuPUnAKXYl4hZuW/gKvXl+PWnXvw9d37cWPFLsx/8W84I7cIM3IKUJFTYF/011f+cfLk2ZSWFkNcdXX1nzwW0FJUBMNwapbj28wW8rs6TfNPtfVNOJiGJqzTNOPnjVo83/AF1tY3Yc3nGqyurcczNXVCv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+KjwwXo8ICopLFF5YOmaDd+WVe75ceeewz1andmhJ6g7J07X3C5/c9/tdVsqu1Nm5bGisNgyAJjoNfhAjfbxnxgaOVk5P3na3PWzFhRULH7+hR1Zuctfn/1c/o6ZOUsqUpRZG6NlKc8CgNjb8GEi4D5SfQDgj79Yn4CHmPj/Ah8OBXTGJ+jbAAAAAElFTkSuQmCC)](https://kwoc.kossiitkgp.org/)

KWoC Communicaton: [![Join the chat at https://gitter.im/epurifier/Lobby](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/epurifier/Lobby)


A KISS(Keep It Stupid Simple) email validator for csv files

To install the script locally use:

To install the program run

```
$ pip install todx
```

If you are using Ubuntu run this instead:

```
$ pip3 install todx
```

If the installation of pandas fails due to user permissions, you can either use sudo or install using the `--user` parameter.


To validate and store the emails in a csv file run:

```
epurifier <input file> <output file>
```

And tackle with the invalid emails through keyboard.


> Note that both input and Output files should be in csv format

If you clone the repo you can extend the code, to install the cloned repo as a package, run:

```
pip install -e .
```

Now, editing the files in the local folder will reflect systemwide installation of epurifier so you can use the epurifier with your modified parameters.

Also, to extend the valid emails you can either pass them when you create the EmailPurifier class as
```python
import email_checker as ec
emails_to_check = [
    # Your emails
]
additional_valid_emails = [
    # add only domain names such as 'google.com'
]
emil = ec.EmailPurifier(emails_to_check, additional_valid_emails)
```

By default it adds the passed additional emails to a list of top 10 valid emails present in `valid_emails.py`
If for some reason you want to only use the additional emails and don't want emails from `valid_emails` you can pass the argument `onlyAdditional=True` to override the behavior.