wangkun 1 년 전
부모
커밋
6e43cc231f
1개의 변경된 파일10개의 추가작업 그리고 9개의 파일을 삭제
  1. 10 9
      shipinhao/shipinhao_search/shipinhao_search.py

+ 10 - 9
shipinhao/shipinhao_search/shipinhao_search.py

@@ -186,7 +186,8 @@ class ShipinhaoSearch:
             # 其中 Appium、UiAutomator2、Selendroid、Espresso 用于 Android,XCUITest 用于 iOS
             "showChromedriverLog": True,
             # "chromeOptions": {"androidProcess": "com.tencent.mm:appbrand0"},
-            "chromeOptions": {"androidProcess": "com.tencent.mm:tools"},
+            # "chromeOptions": {"androidProcess": "com.tencent.mm:tools"},
+            "chromeOptions": {"androidProcess": "com.tencent.mm"},
             'enableWebviewDetailsCollection': True,
             'setWebContentsDebuggingEnabled': True,
             'chromedriverExecutable': chromedriverExecutable,
@@ -659,14 +660,14 @@ class ShipinhaoSearch:
             search_word = user["search_word"]
             our_uid = user["our_uid"]
             Common.logger(log_type, crawler).info(f"开始抓取搜索词:{search_word}")
-            try:
-                cls.start_wechat(log_type=log_type,
-                                 crawler=crawler,
-                                 word=search_word,
-                                 our_uid=our_uid,
-                                 env=env)
-            except Exception as e:
-                Common.logger(log_type, crawler).error(f"search_video:{e}\n")
+            # try:
+            cls.start_wechat(log_type=log_type,
+                             crawler=crawler,
+                             word=search_word,
+                             our_uid=our_uid,
+                             env=env)
+            # except Exception as e:
+            #     Common.logger(log_type, crawler).error(f"search_video:{e}\n")
 
 
 if __name__ == '__main__':