feat: get_paper_meta_from_openalex

This commit is contained in:
caoqianming 2026-02-12 14:09:26 +08:00
parent b3ea39757e
commit 360456b50c
1 changed files with 2 additions and 2 deletions

View File

@ -25,7 +25,7 @@ config.retry_backoff_factor = 0.1
config.retry_http_codes = [429, 500, 503]
# OPENALEX_KEY = "4KJZdkCFA0uFb6IsYKc8cd"
OPENALEX_KEY = "NPimoE2ecdWmfdhH8abxEp"
config.api_key = OPENALEX_KEY
config.api_key = "4KJZdkCFA0uFb6IsYKc8cd"
ELSEVIER_APIKEY = 'aa8868cac9e27d6153ab0a0acd7b50bf'
ELSEVIER_HEADERS = {
@ -169,7 +169,7 @@ def get_pdf_from_openalex(number_of_task: int =10):
break
countdown = 2
if cache.get("openalex_api_exceed"):
countdown = 5 * 60 # 5分钟后重试
countdown = 30 * 60 # 30分钟后重试
if show_task_run(def_name):
current_app.send_task(
"apps.resm.tasks.get_pdf_from_openalex",