加入定时任务

This commit is contained in:
liuwei
2025-05-06 17:02:44 +08:00
parent a9e8e7b2be
commit 58d54dd30c
2 changed files with 2 additions and 2 deletions

View File

@@ -57,7 +57,7 @@ def fetch_and_create_pdf(url):
"utils", "chromedriver", "chromedriver.exe"
)
else: # Linux
chrome_driver_path = 'chromedriver' # 使用系统PATH中的chromedriver
chrome_driver_path = '/usr/bin/chromedriver' # 使用系统PATH中的chromedriver
try:
if os.name == 'nt' and not os.path.exists(chrome_driver_path):

View File

@@ -90,7 +90,7 @@ def fetch_images(post_url):
"utils", "chromedriver", "chromedriver.exe"
)
else: # Linux
chrome_driver_path = 'chromedriver' # 使用系统PATH中的chromedriver
chrome_driver_path = '/usr/bin/chromedriver' # 使用系统PATH中的chromedriver
# 如果本地没有chromedriver.exe则使用默认方式
if not os.path.exists(chrome_driver_path):