zhangyong 11 mesiacov pred
rodič
commit
65ce8a4572

+ 2 - 2
zhufuquanzi/zhufuquanzi_recommend/zhufuquanzi_recommend_new.py

@@ -258,11 +258,11 @@ class ZFQZRecommendNew:
             Common.logger(self.log_type, self.crawler).info("点击标题")
             video_title_element[0].click()
             time.sleep(5)
-            self.check_to_applet(xpath=r'//*[@class="index--video-item index--video"]')
+            self.check_to_applet(xpath=r'//*[@class="dynamic-index--video-item dynamic-index--video"]')
             Common.logger(self.log_type, self.crawler).info("点击标题完成")
             time.sleep(10)
             video_url_elements = self.search_elements(
-                '//*[@class="index--video-item index--video"]')
+                '//*[@class="dynamic-index--video-item dynamic-index--video"]')
             Common.logger(self.log_type, self.crawler).info(f"{video_url_elements[0].get_attribute('src')}")
             return video_url_elements[0].get_attribute('src')