This is a very simple Flask web application written in Python which removes irrelevant characters like '.' and '+' from the emails given to it and returns the number of unique email addresses.
curl --location --request POST 'http://127.0.0.1:5000/uniqueemails' \
--header 'Content-Type: application/json' \
--data-raw '{
"emails": [
"[email protected]",
"[email protected]",
"[email protected]"
]
}'
- This application was developed using Python 3.8 and hence the same version is recommended although any version of Python 3 should work fine.
- Go to the root path of the project
- Run
pip install -r requirements.txt
cd src
flask run