瀏覽代碼

Bug fix for scroll down

naibo 2 年之前
父節點
當前提交
8c7fc02cef
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      ExecuteStage/easyspider_executestage.py

+ 4 - 0
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: