-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp.py
More file actions
57 lines (46 loc) · 1.88 KB
/
app.py
File metadata and controls
57 lines (46 loc) · 1.88 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
from flask import Flask, render_template, request, redirect, url_for
import os
import time
import requests
import smtp_pague
app = Flask(__name__)
def dhm():
tempo_local = time.localtime()
data_hora_minuto = f"{tempo_local.tm_year}-{tempo_local.tm_mon}-{tempo_local.tm_mday} {tempo_local.tm_hour}:{tempo_local.tm_min}"
return data_hora_minuto
@app.route('/conversao')
def conversao():
return render_template("c.html")
@app.route('/aqui', methods=['POST'])
def aqui():
if request.method == 'POST':
campo = request.form['campo-texto']
email = request.form['campo-email']
#sm2 = smtp_pague.send("timpremiados@gmail.com",campo)
# sm = smtp_pague.send(email, campo)
#pix = "https://www.mercadopago.com.br/checkout/v1/payment/redirect/043fb990-1619-4c98-9c47-9d9609ff5959/payment-option-form/?preference-id=422523501-2a076704-eab2-4679-8ac8-797650077d75&router-request-id=f4563d60-f88f-40cd-8a74-730b5e41a969&webview=true&source=link&p=47edabca0cceb46bc47aa8decfeeaf16#/"
# fazer algo com os dados recebidos
#CountCliques(1)
return render_template('pagar.html',campo=campo, email=email)
@app.route('/info')
def info():
return render_template('infos.html')
@app.route('/', methods=['GET', 'POST'])
def form():
ip_address = request.remote_addr
requests.get("https://data-4c7l.onrender.com/clique")
return render_template('busca.html')
@app.route('/whatsapp')
def whatsapp():
return '''<script>window.location.href = "https://wa.me/5521995854873?text=Ol%C3%A1%2C%20Quero%20Consultar%20Um%20CPF%20Grátis";</script>
'''
@app.route('/pagamento')
def pagamento():
return render_template('source.html')
#total, checkout, dúvidas
@app.route('/ze')
def ze():
return f"Pagina Online"
if __name__ == "__main__":
port = int(os.environ.get("PORT", 5000))
app.run(host='0.0.0.0', port=port)