|
@@ -246,13 +246,13 @@ class ShipinhaoSearch:
|
|
|
windowHandles = driver.window_handles
|
|
|
for handle in windowHandles:
|
|
|
driver.switch_to.window(handle)
|
|
|
- try:
|
|
|
- shipinhao_webview = driver.find_element(By.XPATH, '//div[@class="unit"]')
|
|
|
- if shipinhao_webview:
|
|
|
- Common.logger(log_type, crawler).info('切换到视频号 webview 成功')
|
|
|
- return "成功"
|
|
|
- except Exception as e:
|
|
|
- Common.logger(log_type, crawler).info(f"切换失败")
|
|
|
+ # try:
|
|
|
+ shipinhao_webview = driver.find_element(By.XPATH, '//div[@class="unit"]')
|
|
|
+ if shipinhao_webview:
|
|
|
+ Common.logger(log_type, crawler).info('切换到视频号 webview 成功')
|
|
|
+ return "成功"
|
|
|
+ # except Exception as e:
|
|
|
+ # Common.logger(log_type, crawler).info(f"切换失败")
|
|
|
|
|
|
@classmethod
|
|
|
def repeat_out_video_id(cls, log_type, crawler, out_video_id, env):
|