From 79594deec874897ada72fb3f4e38dccd42dba206 Mon Sep 17 00:00:00 2001 From: Evil0ctal Date: Sun, 17 Apr 2022 17:53:14 -0700 Subject: [PATCH] =?UTF-8?q?=20=F0=9F=8F=B7=E4=BF=AE=E6=94=B9=E6=89=B9?= =?UTF-8?q?=E9=87=8F=E4=B8=8B=E8=BD=BD=E6=9C=80=E5=A4=A7=E6=8E=A5=E5=8F=97?= =?UTF-8?q?URL=E6=95=B0=E9=87=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Web/web_zh.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Web/web_zh.py b/Web/web_zh.py index 8a7768d..dafd780 100644 --- a/Web/web_zh.py +++ b/Web/web_zh.py @@ -52,8 +52,10 @@ def valid_check(kou_ling): # 对每一个链接进行校验 if url_list: total_urls = len(url_list) - if total_urls > 30: - return '为了避免资源占用过多请确保输入链接少于30个!' + # 最大接受提交URL的数量 + max_urls = 10 + if total_urls > max_urls: + return '为了避免资源占用过多请确保每次提交的链接少于10个,如需大量解析请自行部署。' else: for i in url_list: if 'douyin.com' in i[:31]: