From e805cf0c845a8e1893da5395fce9e600b446d5bb Mon Sep 17 00:00:00 2001 From: zhurunlin Date: Thu, 26 Jun 2025 14:59:33 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9seo=E5=B9=B6=E5=8F=91?= =?UTF-8?q?=E6=95=B0=E4=B8=BA1,=E4=BF=AE=E5=A4=8D=E8=B1=86=E5=8C=85?= =?UTF-8?q?=E8=A7=A3=E6=9E=90=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config.py | 2 +- spiders/ai_seo/doubao.py | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/config.py b/config.py index 0c26d62..8b16ce3 100644 --- a/config.py +++ b/config.py @@ -34,7 +34,7 @@ AI_SEO_JOB_INTERVAL = 5 # aiseo任务获取平台 AI_SEO_JOB_PLATFORM_IDS = [ '2', '3', '4', '5', '7', '13'] # aiseo任务最大并发量 -AI_SEO_JOB_MAX_INSTANCES = 2 +AI_SEO_JOB_MAX_INSTANCES = 1 DEEPSEEK_SEO_JOB_RANGE = { diff --git a/spiders/ai_seo/doubao.py b/spiders/ai_seo/doubao.py index 9626071..3921fe1 100644 --- a/spiders/ai_seo/doubao.py +++ b/spiders/ai_seo/doubao.py @@ -138,6 +138,7 @@ class DouBaoSpider(AbstractAiSeoSpider): if '/samantha/chat/completion' in response.url: answer = '' datas = [] + index_data = list() response_text = ftfy.fix_text(await response.text()) lines = response_text.split("\n\n") for line in lines: @@ -154,6 +155,7 @@ class DouBaoSpider(AbstractAiSeoSpider): except JSONDecodeError: continue logger.debug(f"ai回复: {answer}") + self.index_data = list(set(index_data)) self.ai_answer.answer = answer self.completed_event.set()