|
@@ -297,13 +297,13 @@ class ShipinhaoSearch:
|
|
|
|
|
|
index = 0
|
|
|
while True:
|
|
|
- if cls.search_elements(driver, '//*[@class="double-rich double-rich_vertical"]') is None:
|
|
|
+ if cls.search_elements(driver, '//*[@class="//*[@class="mixed-box__bd"]"]') is None:
|
|
|
Common.logger(log_type, crawler).info('窗口已销毁\n')
|
|
|
return
|
|
|
|
|
|
Common.logger(log_type, crawler).info('获取视频列表\n')
|
|
|
# video_elements = cls.search_elements(driver, '//div[@class="vc active__mask"]')
|
|
|
- video_elements = cls.search_elements(driver, '//div[@class="vc active__mask small-border-radius"]')
|
|
|
+ video_elements = cls.search_elements(driver, '//div[@class="rich-media active__absolute"]')
|
|
|
if video_elements is None:
|
|
|
Common.logger(log_type, crawler).warning(f'video_elements:{video_elements}')
|
|
|
return
|
|
@@ -326,7 +326,7 @@ class ShipinhaoSearch:
|
|
|
return
|
|
|
|
|
|
cls.i += 1
|
|
|
- cls.search_elements(driver, '//div[@class="vc active__mask"]')
|
|
|
+ cls.search_elements(driver, '//*[@class="rich-media active__absolute"]')
|
|
|
|
|
|
Common.logger(log_type, crawler).info(f'拖动"视频"列表第{cls.i}个至屏幕中间')
|
|
|
time.sleep(3)
|