Files
rss-server/start.py
mol 5157f4f8d2
All checks were successful
continuous-integration/drone/push Build is passing
feat
2023-09-05 18:06:07 +08:00

23 lines
495 B
Python

import os
from RssManager import *
from handlers.pixiv.pixiv_handler import *
class CreateRssServer():
def __init__(self):
rss_options = [
{
'id': 'pixiv',
'type': 0,
'url': os.getenv('pixiv_rss_url'),
'result_handler': pixiv_result_handler
}
]
self.app = RssManager(rss_options)
rss_server = CreateRssServer()
app = rss_server.app
if __name__ == '__main__':
app.start()