From 8c7fc02cef52b504c88161790cf61b199ea44227 Mon Sep 17 00:00:00 2001 From: naibo Date: Tue, 8 Aug 2023 11:41:09 +0800 Subject: [PATCH] Bug fix for scroll down --- ExecuteStage/easyspider_executestage.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ExecuteStage/easyspider_executestage.py b/ExecuteStage/easyspider_executestage.py index b265d9c..a87dd1b 100644 --- a/ExecuteStage/easyspider_executestage.py +++ b/ExecuteStage/easyspider_executestage.py @@ -416,6 +416,10 @@ class BrowserThread(Thread): except: pass scrollType = int(para["scrollType"]) + try: + para["scrollCount"] = int(para["scrollCount"]) + except: + para["scrollCount"] = 1 try: if scrollType != 0 and para["scrollCount"] > 0: # 控制屏幕向下滚动 if scrollType == 1 or scrollType == 2: