Add support for puppeteer to facilitate crawling with information on anti-crawl pages; introduce cache module to avoid frequent crawling of pages

This commit is contained in:
airchaoz
2023-04-01 15:47:35 +08:00
committed by 王志强
parent 64096acd2e
commit af216b7f7e
7 changed files with 593 additions and 327 deletions

View File

@@ -7,6 +7,7 @@ from rsshub.config import config
from rsshub.extensions import *
from rsshub.blueprints.main import bp as main_bp
from rsshub.utils import XMLResponse
from rsshub.extensions import cache
def create_app(config_name=None):
@@ -17,8 +18,9 @@ def create_app(config_name=None):
app = Flask(__name__)
app.config.from_object(config[config_name])
app.response_class = XMLResponse
cache.init_app(app)
# Add analytics
# Add analytics
from flask_analytics import Analytics
from rsshub.google_analytics import ga_account