pip install bottle python from bottle import Bottle, request, response, run python app = Bottle() @app.route('/api/article', method='GET') def get_article(): return article python if __name__ == '__main__': run(app, host='localhost', port=8080)