From 63b0d7090a185cbead6777056a72564df4f30b85 Mon Sep 17 00:00:00 2001 From: yuxin-pc Date: Thu, 12 Feb 2026 09:36:06 +0800 Subject: [PATCH] Update settings.py MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 翻译字数设置 --- spiders/WebsiteSpider/WebsiteSpider/settings.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/spiders/WebsiteSpider/WebsiteSpider/settings.py b/spiders/WebsiteSpider/WebsiteSpider/settings.py index 58dc057..abbadc3 100644 --- a/spiders/WebsiteSpider/WebsiteSpider/settings.py +++ b/spiders/WebsiteSpider/WebsiteSpider/settings.py @@ -12,8 +12,9 @@ SCHEDULER_PERSIST = True SELENIUM_DRIVER_NAME = 'firefox' SELENIUM_DRIVER_EXECUTABLE_PATH = [ 'http://10.55.13.121:28095', - 'http://10.55.13.108:28095', + # 'http://10.55.13.108:28095', 'http://10.55.13.3:28095', + 'http://74.121.148.204:28095' ] SELENIUM_DRIVER_ARGUMENTS = ['-headless'] # '--headless' if using chrome instead of firefox SELENIUM_DRIVER_PREFERENCES = { @@ -168,7 +169,7 @@ ITEM_PIPELINES = { } ############################## 翻译 -MAX_TEXT_LENGTH = 100 +MAX_TEXT_LENGTH = 5999 # 翻译 API 地址(替换为你的服务器 IP 或域名) TRANSLATE_API_URL = "http://47.113.231.200:28082/translate" # 单次请求间隔(秒),避免 API 被限流