Siddharth2603

Untitled

Jan 4th, 2020
42
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.45 KB | None | 0 0
  1. from flask import Flask
  2. from flask import render_template
  3. from flask import request
  4. import Amazon
  5. app = Flask("E-mailer")
  6.  
  7. @app.route("/")
  8. def index():
  9.     url = request.form['url']
  10.     email = request.form['email']
  11.     price = request.form['price']
  12.     Amazon.main(url)
  13.     Amazon.final(email,price)
  14.     Amazon.sendmail(email)
  15.     return render_template("index.html")
  16.  
  17.  
  18.  
  19.  
  20.  
  21.  
  22. if __name__ == "__main__":
  23.     app.run(port = 8080,debug = True)
Add Comment
Please, Sign In to add comment