Browse Source

add weixinzhishu: search_key

wangkun 2 years ago
parent
commit
8a3bae72cf
1 changed files with 2 additions and 3 deletions
  1. 2 3
      weixinzhishu/weixinzhishu_main/search_key.py

+ 2 - 3
weixinzhishu/weixinzhishu_main/search_key.py

@@ -23,7 +23,6 @@ class Searchkey:
                 command_executor='http://127.0.0.1:4723',
                 desired_capabilities=desired_caps)
             driver.implicitly_wait(10)
-
             # Common.logger(log_type).info('点击"聊天窗口"')
             # driver.find_element(By.NAME, '聊天').click()
             #
@@ -62,7 +61,7 @@ class Searchkey:
             #     time.sleep(10)
             #     cls.get_search_key(log_type, crawler)
             else:
-                Common.logger(log_type, crawler).info(f"len(chlsfile_path):{chlsfile_path}")
+                Common.logger(log_type, crawler).info(f"len(chlsfile_path):{len(chlsfile_path)}")
                 Common.logger(log_type, crawler).info(f"len(chlsfile):{sorted(os.listdir(chlsfile_path))}")
                 # 获取最新的 chlsfile
                 chlsfile = sorted(os.listdir(chlsfile_path))[-1]
@@ -104,7 +103,7 @@ class Searchkey:
     def del_search_key_from_feishu(cls, log_type, crawler):
         try:
             sheet = Feishu.get_values_batch(log_type, crawler, 'sVL74k')
-            print(len(sheet))
+            # print(len(sheet))
             if len(sheet) <= 21:
                 # print('<=20行')
                 return