mirror of
https://github.com/d0zingcat/RSSHub-python.git
synced 2026-05-14 23:16:50 +00:00
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:
@@ -1,8 +1,15 @@
|
||||
from flask_bootstrap import Bootstrap
|
||||
from flask_debugtoolbar import DebugToolbarExtension
|
||||
from flask_moment import Moment
|
||||
from flask_caching import Cache
|
||||
|
||||
|
||||
bootstrap = Bootstrap()
|
||||
debugtoolbar = DebugToolbarExtension()
|
||||
moment = Moment()
|
||||
|
||||
cache = Cache(config={
|
||||
"DEBUG": True, # some Flask specific configs
|
||||
"CACHE_TYPE": "simple", # Flask-Caching related configs
|
||||
"CACHE_DEFAULT_TIMEOUT": 3600 # cache half hour
|
||||
})
|
||||
Reference in New Issue
Block a user