wangkun 2 years ago
parent
commit
a843106b0b
1 changed files with 4 additions and 1 deletions
  1. 4 1
      xigua/xigua_search/xigua_search_scheduling.py

+ 4 - 1
xigua/xigua_search/xigua_search_scheduling.py

@@ -606,7 +606,10 @@ class XiguasearchScheduling:
                     driver.quit()
                     return
                 num += 1
-                driver.find_elements(By.XPATH, '//*[@class="HorizontalFeedCard searchPageV2__card single"]')
+                Common.logger(log_type, crawler).info(f"len_videos:{len(video_element_temp)}")
+                Common.logger(log_type, crawler).info(f"index:{index}")
+                Common.logger(log_type, crawler).info(f"i:{i}")
+                Common.logger(log_type, crawler).info(f"index+i:{index+i}")
                 Common.logger(log_type, crawler).info(f'拖动"视频"列表第{num}个至屏幕中间')
                 driver.execute_script("arguments[0].scrollIntoView({block:'center',inline:'center'})", video_element)
                 time.sleep(3)