Update settings.py
翻译字数设置
This commit is contained in:
parent
dfb65f11bf
commit
63b0d7090a
@ -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 被限流
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user