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: