Skip to content

Instantly share code, notes, and snippets.

@horeaporutiu
Created July 14, 2020 22:25
Show Gist options
  • Save horeaporutiu/7489978e8b6a71043ee89c87a88502e1 to your computer and use it in GitHub Desktop.
Save horeaporutiu/7489978e8b6a71043ee89c87a88502e1 to your computer and use it in GitHub Desktop.
import flask
app = flask.Flask(__name__)
app.config["DEBUG"] = True
@app.route('/', methods=['GET'])
def home():
return "<h1>Distant Reading Archive</h1><p>This site is a prototype API for distant reading of science fiction novels.</p>"
app.run()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment