def schedule_api(self): app.run(API_HOST, API_PORT)
def schedule_api(self): """ 开启API """ app.run(API_HOST, API_PORT)
def main(): s = Schedule() s.run() app.run()
def run_server(self): """ run server for api """ app.run(host=API_HOST, port=API_PORT, threaded=API_THREADED)
def schedule_api(self): """ Providing API """ app.run(API_HOST, API_PORT, debug=True)
def main(): Validator(VALIDATE_CYCLE_TIME, VALIDATE_URL_NUMBER).start() Getter(CRAWL_CYCLE_TIME).start() app.run()
def schedule_api(self): """ 开启api :return: """ app.run(API_HOST, API_PORT)