webapi where you can request scheduled rss feed publishing
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
import flask_apscheduler
|
|
|
|
from flask import Flask
|
|
|
|
|
|
|
|
|
|
|
|
def create_app():
|
|
|
|
APP = Flask(__name__)
|
|
|
|
scheduler = flask_apscheduler.APScheduler()
|
|
|
|
scheduler.api_enabled = True
|
|
|
|
scheduler.init_app(APP)
|
|
|
|
scheduler.start()
|
|
|
|
return APP
|