Skip to content

Instantly share code, notes, and snippets.

@pakoy3k
Created March 5, 2020 19:39
Show Gist options
  • Save pakoy3k/5322eb1af1325e9e7d1ecb75aeb057be to your computer and use it in GitHub Desktop.
Save pakoy3k/5322eb1af1325e9e7d1ecb75aeb057be to your computer and use it in GitHub Desktop.
Basic api with python and flask
import flask
app = flask.Flask(__name__)
app.config["DEBUG"] = True
@app.route('/', methods=['GET'])
def home():
url = request.args.get('url')
print ("Add url --> " + url)
app.run()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment