From 74466c702732d07e20572dcf9126ffd9d22bb610 Mon Sep 17 00:00:00 2001 From: Franklin-F Date: Mon, 2 Jun 2025 23:26:46 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E6=94=B9=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E5=BA=93=E5=88=B7=E6=96=B0=E9=97=B4=E9=9A=94=E4=BB=A5=E6=8F=90?= =?UTF-8?q?=E9=AB=98=E6=80=A7=E8=83=BD=EF=BC=8C=E5=87=8F=E5=B0=91=E8=A7=86?= =?UTF-8?q?=E9=A2=91=E5=88=97=E8=A1=A8=E7=94=9F=E6=88=90=E6=97=B6=E7=9A=84?= =?UTF-8?q?=E8=AF=B7=E6=B1=82=E5=BB=B6=E8=BF=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- DB.py | 2 +- main.py | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/DB.py b/DB.py index 3f0e8da..be2a6ee 100644 --- a/DB.py +++ b/DB.py @@ -503,7 +503,7 @@ class DBVidcon: class DBSA: FLUSH_EVERY_ROWS = 100 # 行阈值 - FLUSH_INTERVAL = 60 # 秒阈值 + FLUSH_INTERVAL = 30 # 秒阈值 _buf_op: List[Dict] = [] _buf_vid: List[Dict] = [] diff --git a/main.py b/main.py index 208cf14..a91bb04 100644 --- a/main.py +++ b/main.py @@ -125,7 +125,6 @@ def get_searchInfo(keyword, level, headers, proxy_name, r=2): "u_pic": iteminfo.get('owner.avatar_60_url') } video_list.append(v_data) - time.sleep(2) if len(video_list) < 100: break return video_list