Update app.py
Browse files
app.py
CHANGED
|
@@ -1,11 +1,4 @@
|
|
| 1 |
-
|
| 2 |
-
import subprocess
|
| 3 |
-
import json
|
| 4 |
-
import os
|
| 5 |
-
|
| 6 |
-
app = Flask(__name__)
|
| 7 |
-
|
| 8 |
-
@app.route('/check_email', methods=['GET'])
|
| 9 |
def check_email():
|
| 10 |
email = request.args.get('email')
|
| 11 |
if not email:
|
|
@@ -21,9 +14,9 @@ def check_email():
|
|
| 21 |
if line.startswith('[+]'):
|
| 22 |
website = line.split()[1]
|
| 23 |
websites.append(website)
|
|
|
|
|
|
|
|
|
|
| 24 |
|
| 25 |
# Return the result as JSON
|
| 26 |
-
return jsonify({'email': email, 'websites': websites})
|
| 27 |
-
|
| 28 |
-
if __name__ == '__main__':
|
| 29 |
-
app.run(host='0.0.0.0', port=7860)
|
|
|
|
| 1 |
+
@app.route('/api', methods=['GET'])
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2 |
def check_email():
|
| 3 |
email = request.args.get('email')
|
| 4 |
if not email:
|
|
|
|
| 14 |
if line.startswith('[+]'):
|
| 15 |
website = line.split()[1]
|
| 16 |
websites.append(website)
|
| 17 |
+
|
| 18 |
+
# Exclude "Email" if it appears
|
| 19 |
+
websites = [website for website in websites if website.lower() != "email"]
|
| 20 |
|
| 21 |
# Return the result as JSON
|
| 22 |
+
return jsonify({'email': email, 'websites': websites})
|
|
|
|
|
|
|
|
|