wangkun 1 سال پیش
والد
کامیت
e47ff7c7e7
2فایلهای تغییر یافته به همراه3 افزوده شده و 2 حذف شده
  1. 1 0
      README.MD
  2. 2 2
      xigua/xigua_search/xigua_search_scheduling.py

+ 1 - 0
README.MD

@@ -246,4 +246,5 @@ ps aux | grep run_gongzhonghao | grep -v grep | awk '{print $2}' | xargs kill -9
 ps aux | grep run_shipinhao | grep -v grep | awk '{print $2}' | xargs kill -9
 ps aux | grep Appium.app | grep -v grep | awk '{print $2}' | xargs kill -9
 ps aux | grep kuaishou | grep -v grep | awk '{print $2}' | xargs kill -9
+ps aux | grep xigua_search | grep -v grep | awk '{print $2}' | xargs kill -9
 ```

+ 2 - 2
xigua/xigua_search/xigua_search_scheduling.py

@@ -583,13 +583,13 @@ class XiguasearchScheduling:
         # 点击列表形式//div[@class="searchPageV2__header-icons"]/*[3]
         Common.logger(log_type, crawler).info("点击列表形式展示")
         driver.find_element(By.XPATH, '//div[@class="searchPageV2__header-icons"]/*[3]').click()
-        time.sleep(1)
+        time.sleep(3)
         driver.get_screenshot_as_file(f"./{crawler}/logs/已点击最新排序.jpg")
 
         index = 0
         num = 0
         while True:
-            video_elements = driver.find_elements(By.XPATH, '//*[@class="HorizontalFeedCard searchPageV2__card"]')
+            video_elements = driver.find_elements(By.XPATH, '//*[@class="HorizontalFeedCard searchPageV2__card single"]')
             video_element_temp = video_elements[index:]
             if len(video_element_temp) == 0:
                 Common.logger(log_type, crawler).info('到底啦~~~~~~~~~~~~~\n')