EmailFinder / app.py
pradeepodela's picture
Update app.py
2f4bfdb
Raw
History Blame Contribute Delete
577 Bytes
from flask import Flask, render_template, request
from emailpy import *
app = Flask(__name__)
@app.route('/')
def index():
return render_template('index.html')
@app.route('/validate', methods=['POST'])
def validate():
firstname = request.form['firstname']
lastname = request.form['lastname']
domin = request.form['domin']
email = run(firstname, lastname, domin)
send = f'The delivarible Email Address of the person is {email}'
return render_template('index.html', email=send)
if __name__ == '__main__':
app.run(host="0.0.0.0", port=7860)